Requirement to set a string value to null
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.
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 ("")
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.
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