JSON.parse and evalJSON() are not working in scoped application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-24-2018 06:01 PM
Hello Everyone,
In scoped application JSON.parse() and evalJSON() are not working in client script(onChange). I am trying to pull user information basing on field "User" in my scoped application table.
var answer = server.responseXML.documentElement.getAttribute("answer");
answer = JSON.parse(answer);
var answer = server.responseXML.documentElement.getAttribute("answer");
answer = answer.evalJSON();
I tried both but answer returns null value. Any alternatives?
Thanks
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-24-2018 08:43 PM
Hello Chandukollaparthi,
While working in Scoped Application ensure to call out of scope includes via API Name. Replace JSON.parse(answer); with new global.JSON.parse(answer);
Thanks,
Pradeep Sharma