- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2020 03:15 AM
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 ?
Solved! Go to Solution.
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2020 04:32 PM
as discussed over hangout , we solved it with below line.
var parser = new JSON();
var obj = parser.decode(ab);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2020 04:58 AM
then you dont need to parse, you should access the json object directly.
just confirming, in u_response_body_payload column its not updating the value ?
can you add this below line after line number 8, to validate if gliderecord is working fine or not.
gs.log('Row count is '+inc_test.getRowCount());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2020 09:09 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2020 11:15 AM
can you confirm , the row count of your first glide record ? like i had mentioned in my earlier response, put log to check the row count of your gliderecord.
let me know the log details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2020 01:12 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2020 01:18 PM
just for testing , can you add log of those value which you are setting in the column.
can you paste the script here . i will try to make it short for testing.
also can you confirm any business rule is not contradicting here ?
gs.log('Row count is '+inc_test.getRowCount());