Using URI+ to force a view when following link in email

Uncle Rob
Kilo Patron

According to Scripting for Email Notifications if you put ${URI+&sysparm_view=ess} you can force the ess view of the form to the record the user clicks.

I definitely have an ess view for the form the record uses, but that link keeps going to default view.


Is this a valid feature in Eureka?

10 REPLIES 10

Create a new email notification script and use the below 2 lines in that. What I am doing here is setting the General view for the incident, when the user clicks the link in the email he receives.



var url = gs.getProperty("glide.servlet.uri") + 'nav_to.do?uri=incident.do?sys_id='+current.sys_id+'%26sysparm_view=general'; //Here the General view is used


template.print('<a href="' + url + '">' + current.number.getDisplayValue() + '</a>');



Give the script a name and then go to the notification and include ${mail_script:name of the notification script} in the place where you want to use.



This will definitely work as I use this in my instance. let me know for any issues.