Condition to ignore null

Not applicable

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?

0 3 1,396
3 REPLIES 3

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?

Not applicable

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.