Snutils
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2024 07:37 AM
Hi All,
I want to create a slash command such that when i put it it should navigate me to different instance. Please help me in achieving this in snutils
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2024 08:04 AM
To set up your own slashcommands, click on the Exensions icon in your browser, and then click on SN Utils. From there, you'll see a menu with an option to set up slashcommands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2024 01:45 PM
There is an existing command to do this or you can make your own as JC mentioned. The built in one, /env, requires you to type the instance name like /env myinstance
Example if you are on a page like https://dev12345.service-now.com/now/nav/ui/classic/.... and want to view the same page in your other instance you can put /env dev45678 and the new URL will be https://dev45678.service-now.com/now/nav/ui/classic/....
If you want a dedicated value, for instance if your instance name is very long and you do not want to type it out each time, you can make your own command using the below steps.
- Navigate to the slashcommands tab
- Enter the command you want to use in the command box
- I used etest, edev etc (=environment dev for my memory) but you can put what you want as long as it does not already exist
- enter //env 45678 where 45678 is the instance you want to go to (note you need both forward slashes here)
- Add a Hint if you want
- Save and test the new command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2024 07:02 PM - edited 12-13-2024 07:07 PM
Hi @kali ,
Refer below link
If my response helped, please mark it as the accepted solution ✅ and give a thumbs up👍.
Thanks,
Anand