I am consuming a Service through Connect-REST for which i have to sent value for different types of properties( Integer, Text, Boolean) which is mandatory. if i don't have value i am supposed to null with out quotes but when i am forming my request the null is going with quotes which is not accepted by service.
When i checked in JASON standard, there is some type call null to handle this. please find the below link and details for this
"Strings, Booleans and integers do not have an 'empty' form, so there it is okay to usenull values. "JSON has a special value called null which can be set on any type of data including arrays, objects, number and boolean types."
Is it possible to achieve this in Pega? please help us on this, this is impacting our development activities. We are using Pega 7.1.7 version.
I am trying to set my request param using the following syntax @if(@(Pega-RULES:Default).PropertyExists(.TextProperty), ".TextProperty", "null"). both LHS and RHS properties are Text Properties. my concern is values going in the request not going as follows "TextProperty": null. It is going as "TextProperty": "null".
Praveen, i don't want to set null always. Service is expecting null when there is no value for particular property. if assign the property directly its going as "TextProperty":" " which will not work out. If we set null value directly also it is going as follows "TextProperty":" ".
Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write Post button here. Once created, please reply here with the URL of the new post.
You may also refer this discussion link as a reference in the new thread.