- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2022 11:27 AM
Hi everyone,
So, the problem at hand is the following:
I need to change the current page or URL via ServiceNow scripted rest API so as the user is doing his work I can use something to call ServiceNow Scripted REST API and inside the API code I need to go to the URL that I sent in the request?
This is in a scoped application.
So ServiceNow Scripted REST API ->(talks to) ? -> refresh the page to the form of a record.
How would you tackle this problem?
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2022 02:31 AM
nope
If my response helped please mark it correct and close the thread so that it benefits future readers.
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
‎05-11-2022 02:11 PM
Hi AdolfoMoreno,
I guess if you want some help here from anyone you should describe your question a little better 🙂
In general when working with rest, most of the times it are messages coming in or out of the sytem to update something. And that could be a standalone thing. I don't understand in your describtion what you are trying to accomplish?
- are you sending a rest message out of servicenow
- or from an external site it comes into servicenow
- is the user (as you talk about redirecting to a page described in the rest message) currently in the servicenow and should he/she be recirected to another page? Is he in a ui form, on the portal? elsewhere?
- When is the rest message being send / received ? Dependencies on things?
- Etc
Perhaps if it is more clear someone can help you out here! Hope this helped anyway to get you more into the direction of how to ask your question 🙂 Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2022 11:15 PM
Hi,
So th rest message come from out of servicenow from an external application. Yes the user is just using ServiceNow doesn't really matter where he is. The message is sent on command so can be anytime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2022 11:19 PM
Hi,
External applications consuming ServiceNow's API endpoint is asynchronous task and happens in backend so how the redirection comes into picture?
Can you explain your business requirement here?
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
‎05-12-2022 12:04 AM
Hi,
So, I need to receive a URL and a user sysid and somehow the rest API script will trigger something client side that will open that record for that user.
What I need to accomplish is opening records on command for a user via API.
Thanks in advance!