Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

JSON parser step in flow action for dynamic payload

ShAn21
Tera Guru

Hello Team,

I have a query regarding JSON parser step in flow action. Is it possible to use the JSON parser step if we have a dynamic payload? The rest step doesn't always return same payload. It depends on the params we send.

What I mean is the key value pair will not be the same always.

For Eg: Response 1: {"assigned_to":"xyz"}

Response 2: {"number":"INCXXX","short_description":"abcxyz"}

 

Any feedback here would be appreciated.

 

Thanks

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@ShAn21 Are you referring to JSON.parse() then yes it can parse the dynamic payload.

No. I mean using JSON parser step in flow action. It is usually used to parse rest step response.