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
- Send null to a text typed property while not providing a value to the data transform
- 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:
- Provide Map from Clipboard and Map from key as .pyJsonData on the Request tab
- Populate .pyJsonData with JSON request before invoking the Connect-REST in an activity
Published August 19, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.