- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2025 04:56 AM
Hi Members,
I am getting the "undefined" values from the Query Parameter of the REST Outbound message (refer the screenshot). But when the Parameter values are passed from the Endpoint then they are received properly e.g. https://<instanceid>service-now.com/api/918167/incident/create_incident?correlationid=${corrid}&shortdescription='${shortdesc}'.
Please suggest.
Release: Xanadu
The Scripted REST API is: -
Query Parameter of the REST Outbound Message POST: -
Logs: -
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2025 10:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2025 06:27 AM
Hi @NehaSNOW
I think maybe I'm getting the structure wrong. To see what the structure is like you can try printing the "request" object using JSON.stringify()
If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!
Tks
Natan Felipe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2025 07:55 AM
I have entered gs.log('TESTING Request: '+ JSON.stringify(request.body)); in the Scripted REST API and it is showing blank in the logs (screenshot). Please suggest.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2025 08:02 AM
@NehaSNOW
Just try gs.log('TESTING Request: '+ JSON.stringify(request)); to see what happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2025 08:13 AM
@Natan F Rosa It is same i.e. blank (screenshot of logs). By the way I have passed the hardcoded values also in the Query Parameter but still the request is showing as blank in the Log. I believe either it could be an issue with the request in the Query Parameter or in the Scripted REST API with the way it is receiving the request screenshot attached).
Logs:-
Scripted REST API: -