I am writing an API to expose Outsystems data to an external system in JSON. We have a number field retrieved from that API which can be a numeral integer value including zero. Zero is not considered a null value in the external system. Is there any value I can set in the field so that a null value is retrieved in JSON?
Hi Desiree,
For the mentineond case, refer to this post: https://www.outsystems.com/forums/discussion/50467/assigning-null-to-string-variable-in-a-api-call/#Post187280
Hope this helps you!
Regards,
Benjith Sam
Thanks Benjith
The only way I'm seeing is to change the field type to text and add your logic to check if you should send 0 or ''.
Hope it helps,
Ricardo Pisco.
Yes. Thanks. I am already checking for 0s and null strings on the on-response action. The issue is resolved.