The CreatorCon Call for Content is officially open! Get started here.

script to get all payloads of a flow and dump the json to logs

CV1
Tera Contributor

Hi All,

 

We have a Flow that sends payload to a 3rd party app and then attaches pdf to case. This  flow has 130 executions.

The requirement is they need all the payloads and attachment for each payload. One way of doing is opening up each execution and copying the payload sent (this will have the attachments as well). Is there a better way to achieve this?
Looking if we can script to get all the payloads for the flow.
Please advise.

TIA

2 REPLIES 2

Community Alums
Not applicable

Hi @CV1 ,

This video should help :https://www.youtube.com/watch?v=Vhzx4Q8RIXM

 

Do you need a JSON payload and you're not exactly sure how to write a script to generate one? Don't worry, ServiceNow's new JSON Builder Step has you covered. Watch this video to see me convert one of my scripts to generate the JSON payload for a calendar event in Google to the new JSON builder ...

Community Alums
Not applicable

Hi @CV1 ,