- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2020 11:32 PM
Hi Everyone ,
I'm New to Servicenow Script
i am Using Script include . In Script Include i need to To create a workspace link to a Record .
i have :
1.Record Name
2.Record TAbleName .
3.Workspacename
i need help in Creating Url link for that Record in Agent Workspace using Script in Script Include .
Something like this :
How to get Instance name ?? and Create Link?
Kindly Help me with the Code ,
Thankyou,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 02:18 PM
You can use below to get the instance name
var instanceName = gs.getProperty('instance_name');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2020 11:47 PM
Hi below is the schema for the same.
https://<baseURL>/nav_to.do?uri=<table name>.do?sys_id=-1%26sysparm_query=<field=value>
I hope this helps. the name of the instance you can mention in system property and pull it according to your environments.
Mark my ANSWER as CORRECT and HELPFUL if it helps.
You don't need to worry about workspace just try the above schema.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2020 02:18 PM
You can use below to get the instance name
var instanceName = gs.getProperty('instance_name');