- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 02:56 AM
Hello Friends,
I’m facing error messages when we are reading and printing all array values from for loop.
I have stored true/false fields into array.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 03:07 AM
Hi Basant,
this happens when you are trying to access something which has not that property
try below and check whether error comes or not
gs.info('Following Array Values : ' + gciscdP[checkboxes[i]]);
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
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
11-26-2024 02:20 AM
For the email actions, I have a requirement to pick the values from Additional information of the Alert , it works fine while testing but when running the End to end testing it throws and error saying cannot read property Null, but this is not shown while testing it, could there be any specific reason for this?