Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Workspace Notification not routing to workspace

cnharris1
Kilo Sage

Good evening developers,

 

I have a question.

I created a workspace notification to trigger when a task is assigned to an agent and its getting triggered correctly, however, when an agent clicks on it, its directing them to the classic native ui view and not to the task in the Source-to-Pay workspace. 

Is there a way to route the agent to workspace to view the record and not to the classic ui view. Here's a screenshot of the notification: 

cnharris1_0-1717026845125.png

Under Content > New Provider Content, I did select Workspace but it still went to the native ui view. Does anyone have any guidance on how I can route agents to the Source-to-Pay workspace and not the native ui view?

 

Any help will be greatly appreciated!

 

Best regards,

 

 

cnharris1

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Unfortunately this is not possible as each UI has its own target URL format and there is no way to build a context-aware link. 

View solution in original post

4 REPLIES 4

Maik Skoddow
Tera Patron
Tera Patron

Unfortunately this is not possible as each UI has its own target URL format and there is no way to build a context-aware link. 

Thanks @Maik Skoddow ! That definitely helps me out.

Why is it not possible to recreate the URL by a action script, if the records sys_id is given?
Isn't it possible to leverage on such a script, which works for email notifications:

  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 />");

Wouldn't we need to adopt the logic into this template (?) :

(function action(
        /*GlideRecord of sys_notification_execution*/ execution,
        /*GlideRecord of sys_notification_action*/ action,
        /*GlideRecord of sys_notification*/ notification,
        /*GlideRecord of record changed to cause notification*/ target) {

    

})(execution, action, notification, target);

 

 

   

 

})(execution, action, notification, target);




Anish Reghu
Kilo Sage

How did you create a workspace notification, if you could help me navigate?

 

Regards,

Anish