- 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
08-10-2021 02:04 PM
HI
I was looking at your post as I have a similar issue. I am needing to set up a variable and pass the variable. I see you defined the variable {sys_id} in the HTTP Parameter, but in the code you hard coded the variable value. r.setStringParameter('sys_id', '599fc2c5db65e41011762183ca9619cc'). Do you know how you would code a variable in the script instead? Thanks!