- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2024 10:18 AM
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 1
image 2
image 2
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2024 04:18 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-01-2024 04:18 AM
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