- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2021 09:56 PM
Hi Developers,
Can anyone let me know how o set the Http Query parameter dynamically?
I am just trying to use Get method to get incident details. And i am triggering this rest from below scheduled job.
Rest Outbound message:
Scheduled job: (hardcoded sysid just for testing, later will use the dynamic sysid)
Regards,
Snehal
Solved! Go to Solution.
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2021 10:57 PM
I got it solved!
I used setStringParameter to set the http query parameter and in http query parameter set the value as ${variablename}
Regards,
Snehal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2021 10:11 PM
Hi,
you will have to use this function to set the query parameter
setQueryParameter()
setQueryParameter(String name, String value)
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2021 10:59 PM
Thanks for the response Ankur!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2021 10:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2021 11:31 PM
Hi,
you can use setStringParameter() with variable substitution but there is direct function for that so no need for variable substitutions
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader