- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2022 11:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2022 12:30 AM
Hi,
you should be able to parse using JSON parser and get the values
Since you said it's confidential one we can just provide example from our side and rest part you need to take care of.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2022 01:35 AM
Hi,
if you are receiving object then directly parse and no need to use JSON parser.
but if you are receiving string then you need to use JSON parser.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2022 03:03 AM
When i run the background script i'm geting object in place of some field values...why is it so?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2022 11:22 AM
Hi
Calling object values like below. similarly you can get your object values if values in object only
var obj={
'key1':'value1',
'key2':'value2'
};
gs.info(obj.key1);
gs.info(obj.key2);
output:-
*** Script: value1
*** Script: value2