- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 10:01 AM
Hello I have a ui action on a kba which opens the article in the service portal. However I wanted to see if there is a way to have the url change as I move the code through our instances. so the url will update for prod or dev.
Here is the code bellow
Any assistance is appreciated. Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 10:21 AM
Just use following in place of line 5
var url = "/sp?id=kb_article&sys_id=" + gr;
ServiceNow will automatically append the current instance URL.
Thanks
Harshad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2022 10:21 AM
Just use following in place of line 5
var url = "/sp?id=kb_article&sys_id=" + gr;
ServiceNow will automatically append the current instance URL.
Thanks
Harshad