Email Notifications - Incident and Requests Links to Agent Workspace

TStark
Kilo Sage

Currently I have email notifications setup to include links to Incidents (i.e. ${mail_script:incident_take_me_to_the_incident} ) and requests which open in the Default view. Is there a way to link incidents and request to open in Agent Workspace instead?

Thanks,
AJ

1 ACCEPTED SOLUTION

Chander Bhusha1
Tera Guru

Hi AJ,

Use this script in the notification email script:

Create a notification email script and crate a dynamic url using this and use this link to navigate to workspace.

  var agentURL = '<a href="' + gs.getProperty('glide.servlet.uri') + '/now/workspace/agent/record/'+ current.getTableName() + '/' + current.sys_id + '">' + current.number + '</a>';
  template.print(agentURL + "<br />");

Once Done add that mail script to the notification using ${mail_script:take_me_workspace}

 

Servicenow Docs Link:

https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/administer/notification/concept/...

 

Community Article Link:

https://community.servicenow.com/community?id=community_question&sys_id=88e6a0411bca1c10305fea89bd4b...

 

Mark helpful and correct if it helps.

Thanks,

CB

View solution in original post

5 REPLIES 5

You should use the function getLink from the EmailNotificationRedirection script include:

 

    var link = new EmailNotificationRedirection().getLink(current.getTableName(), current.getUniqueValue());
 
And then set the property sow_email_notification_redirect  to true