- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2022 04:43 PM
Hello guys, can you notice something wrong in this script? It is returning a string and when I try to access it in the client side, even parsing with JSON.parse, I cannot access the obj elements...
Script include:
OnChange client script:
Solved! Go to Solution.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2022 05:02 PM
response.getBody()
returns a string, so you shouldn't "stringify" it - it is already a string.
An advice, if you allow me: post text, not pictures.
Someone might want to test your code, should that person re-type what you already have? How many do you thing would go the length?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2022 05:44 PM
In code answerParsed
is obtained from response
which is intended to be the stringification of an object, so it is OK.
What needs to be changed is the Script Include where the value obtained by calling response.getBody()
should be returned.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2022 05:56 PM
You're right. Script include code didn't show up on my browser when I first looked at the question.