Create Url Link for a Record in Agent Workspace ?? Agent Workspace ?

Tarun2
Tera Contributor

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 :

https://devxxxx.service-now.com/x/445906/workspace/your_data_connect/record/x_445906_your_data_datab...

How to get Instance name ?? and Create Link?

Kindly Help me with the Code  , 

Thankyou,

 

1 ACCEPTED SOLUTION

rajneeshbaranwa
Giga Guru

You can use below to get the instance name

var instanceName = gs.getProperty('instance_name');

 

View solution in original post

2 REPLIES 2

Ct111
Tera Sage

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.

https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/use/navigation/reference/r_Naviga...

 

Mark my ANSWER as CORRECT and HELPFUL if it helps.

 

You don't need to worry about workspace just try the above schema.

rajneeshbaranwa
Giga Guru

You can use below to get the instance name

var instanceName = gs.getProperty('instance_name');