- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2017 02:48 AM
Hi,
How to pass this JSON request in query parameters of REST API
"comment": { "body": "The smoke is very colorful." },
Thank you.
Solved! Go to Solution.
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2017 03:57 AM
Hi Harish,
http://wiki.servicenow.com/index.php?title=RESTMessageV2_API#setRequestBody.28String_body.29
You can use setRequestBody method for setting this "request body"
eg,
setRequestBody(JSON.stringify(myObj));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2017 03:57 AM
Hi Harish,
http://wiki.servicenow.com/index.php?title=RESTMessageV2_API#setRequestBody.28String_body.29
You can use setRequestBody method for setting this "request body"
eg,
setRequestBody(JSON.stringify(myObj));