Rest json response find correlation id

Training
Tera Contributor

Im creating incident to third party using POST REST. Then doing GET method to get number/sysid of that incident so I can set it as correlation id in my instance.

 

Using GET I'm getting response -

Transactions[

..

.

body{

Incident 1 In encrypted base 64

}

 

body{

 

Incident 2 In encrypted base 64

 

}

So on

 

How can I iterate through this response array and then decode it to set correlation id?

 

Please help.

 

12 REPLIES 12

I cannot define jsonString cause it is dynamic data and will change in each GET call.

Sorry, not working, i would not be able to define response strong cause it may contain multiple records.. so i think i need to decrypt body using base64 decide function and then iterate through it to match my incident number using gliderecord to incident table.

If i get to some help on it, it will be grateful, thanks.

@Training 

I just shared an example. you can always enhance it as per your case.

We are not really sure what exactly you are writing.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader