How can I get the URL of the instance and use it in the SP widget?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2022 01:47 AM
hello.
I want to be able to transition to another page of that instance by getting the "devxxxxx" part of the URL of the instance with the client controller of the SP widget and adding the address after that, but I don't know how.
If anyone knows how to do this, please let me know.
The image of the flow is as follows.
1. Get the "devxxxxx" part of the URL
2. Create URL by adding protocol and page ID etc.
3. Put the created URL in a harf of HTML
Regards,
Ro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2022 01:50 AM - edited ‎12-02-2022 01:52 AM
Hi,
you can create system property to store your instance url and use that property by gs.getProperty in your script .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2022 02:00 AM
Hi @Ro5
var url=gs.getProperty("instance_name")+".service-now.com";
check below thread. That might help you