- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2023 01:54 AM - edited ‎02-02-2023 06:59 PM
Hi All,
I m having a requirement where Service Now API endpoint should accept the callbackURL parameter and use that when state changes on change request.
Could anyone please help me with the steps how ServiceNow API endpoint to accept the callback URL.
I am using a REST message here. The callback URL would be dynamic for each change request.
Service Now API endpoint should accept the callbackURL parameter
@Ankur Bawiskar could you please guide here
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2023 08:54 PM
I already shared to use variable substitution and you can use setString method of RestMessage class
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2023 10:56 PM
you can use variable substitution and set it dynamically
what did you start with and where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2023 11:04 PM
Hi @Ankur Bawiskar ,
These are the variable substitutions . I need to pass sys ID of change request, state and change request number to the call back URL whenever state changes
The end point which I have put should be a dynamic one for each change request. The token, project number and feature would be unique for change requests.
So when state changes in ServiceNow for a CR, it needs to POST to the callbackURL with the current status of the CR.
Whenever a state changes need to pass the above 3 values to this callback URL end point
Please suggest me how can I provide a dynamic URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2024 05:20 AM
have you got solution on this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2023 06:39 PM
HI @Ankur Bawiskar , Could you please help with the dynamic script of calling rest message end point .
I have also shared the steps that I tried and where I'm struck..kindly guide