Notification redirect URL based on user's role

Vaniyaa
Tera Contributor

I have requirement that for notification if user have no role URL`` should redirect to service portal page and if user have 'itil' role should redirect to sow pages for ticket.
I have written a email script for this but its not redirecting.

image 1image 1image 2image 2image 2image 2

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

gs.hasRole won't work in this instance as the "current" user is the system, not the recipient. The complexity comes when the notification could have multiple recipients, each with their own permissions which means the link needs to be dynamic.

You're best implementing this within SP redirection process - https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0746730 

View solution in original post

1 REPLY 1

Kieran Anson
Kilo Patron

gs.hasRole won't work in this instance as the "current" user is the system, not the recipient. The complexity comes when the notification could have multiple recipients, each with their own permissions which means the link needs to be dynamic.

You're best implementing this within SP redirection process - https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0746730