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.

We have scripted rest API which gets the request from another API. we have to update this request in a field in a table. I am able to get the request details & i can see the request body by capturing in the logs but when i am trying to set the same b

krishna26
Kilo Expert

Hi Guys,

We have scripted rest API which gets the request from another API. we have to update this request in a field in a table. I am able to get the request details & i can see the request body by capturing in the logs but when i am trying to set the same body to the concerned field in the required table , i couldn't do so, it's empty. (pls see the screen shots for reference).

I need that request body to be updated to the particular field . Any help on this please ?

1 ACCEPTED SOLUTION

as discussed over hangout , we solved it with below line. 

 

var parser = new JSON();
var obj = parser.decode(ab);

 

 

View solution in original post

15 REPLIES 15

Saying Thanks for this is a small thing but deeply conveying my regards for your time & patience. Will remember your Help always 😇😇