Link email notifications to portal

Christine24
Giga Expert

I am working on notifications for our end users and wanted to start having them point to the portal. I did some researching and found this post: https://community.servicenow.com/community?id=community_question&sys_id=79d187a9db98dbc01dcaf3231f961933

However I am seeing two problems with this and wasn't sure how to fix them:
1. I wanted to use it for two different portals - we have an internal portal and a client facing portal. How do I make sure it works for the appropriate link?

2. When I put the script into my instance I got the error: Email script render error: email script [ service_portal_link ] does not exist

 

Any ideas on how this one?

21 REPLIES 21

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

service_portal_link  basically this is a mail script. YOu have to change the mail script name and substitute it properly in notification.

In this email script you can decide which link to send in notification i.e for which portal.


Thanks,
Ashutosh

I did put in the proper link but that is still the error I get..also, we use the same templates for both internal/external. Is there any other way to add a conditional statement?

I got the link to work. I had a typo...

But I'm still unsure of how I make it conditional based on who it's sending to.

Hello Christine,

The best way is to add a redirection in the serviceportal landing page. Based on the logged in user accessing the portal, redirect the user to internal or client facing.

That way, the link in email script can be simple logge din user.

Alternative way is to trigger this notification from event. And trigger this event separately for internal users and clients. For internal users, pass the parm2 with internal service portal url. 

Kindly mark the comment as a correct answer and helpful if it helps to solve your problem.

Regards,
Asif
2020 ServiceNow Community MVP