- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2019 02:03 AM
Hi,
I am trying to add choice list of impact in the chatbot of virtual agent but shows an error as "org.mozilla.javascript.NativeJavaObject@cd9054a4"
And here is my code
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2019 08:55 AM
Hi there,
A month or 2 ago, I helped a fellow community member who had similar error messages. Somehow, adding in your options.push, after the getLabel() + "" fixed it. Maybe that works for you also?
Give it a try.
options.push({'value': choiceList.getChoice(i).getValue(), 'label': choiceList.getChoice(i).getLabel() + ''});
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2019 08:55 AM
Hi there,
A month or 2 ago, I helped a fellow community member who had similar error messages. Somehow, adding in your options.push, after the getLabel() + "" fixed it. Maybe that works for you also?
Give it a try.
options.push({'value': choiceList.getChoice(i).getValue(), 'label': choiceList.getChoice(i).getLabel() + ''});
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2019 09:05 AM
return JSON.stringify(options);
Vinod Kumar Kachineni
Community Rising Star 2022