Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Requirement to set a string value to null

SA-69804

Summary

Requirement is to set a string value to null while calling a request connector. Function returns null if the entered parameter is empty. However, the property is set to “” and not null.


Error Messages



Not Applicable


Steps to Reproduce

  1. Send null to a text typed property while not providing a value to the data transform
  2. Verify the sent request message. The value is sent as an empty string ("")

Root Cause



Here’s the explanation for the reported behavior. Returning an empty string instead of null is the default Clipboard behaviour and modifying it causes issues.


Resolution



Perform the following local-change without using the Clipboard and populating the JSON request: 
  1. Provide Map from Clipboard and Map from key as .pyJsonData on the Request tab
  2. Populate .pyJsonData with JSON request before invoking the Connect-REST in an activity

  



 

 

Published August 19, 2019 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us