Hi guys, I'm extracting JSONPayload and then generating an response.
Now while extracting I get few null values.
I only want to display the values which aren't null.
Can we use an condition to ignore the null values, if yes, how should I write a condition which ignores the null values?
Can you provide a little more detail? How are you "displaying" the values? Using assignmessage in some way? Something else?
I need a similar solution. I'm currently using an AssignMessage to build a payload were I want to omit some empty or null values. Can you provide an example?
You will have to use a Javascript policy for that . In the javascript , based on null check of the request variables you need to build your response JSON as string . Then Assign that string to a flow variable and use that flow variable while generating your response.
User | Count |
---|---|
5 | |
2 | |
2 | |
1 | |
1 |