How to use sysparm_view in the notification to get our desired view of the form?

pallavikavuluru
Kilo Contributor

Hi,

          In our scenario there is a link that opens the task form in the notification email. Whenever we click the link the default view of the task form is being opened. Our requirement is "the form should appear in our desired view". For that we have created a view on the task table.

We have tried many ways to get the desired view using URI , URI_REF, URL

We have selected the 'Content Type' in the notification as "HTML and plain Text"   and have added the below line (which is mentioned in WIKI) in the Message

Click here to view the task: ${URI+sysparm_view=BA_Termination_Task}

The hyperlink appears in the mail as

https://dev12880.service-now.com/nav_to.do?uri=sc_task.do%3Fsys_id=e41e76450f564200c3da306be1050e40s...

we have also tried with

Click here to view the task: ${URI+&sysparm_view=BA_Termination_Task}

This appears as

https://dev12880.service-now.com/nav_to.do?uri=sc_task.do%3Fsys_id=e41e76450f564200c3da306be1050e40%...

Nothing worked.   Can anyone suggest any solution to this?

10 REPLIES 10

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Pallavi,



I think you will need to do that with the help of mail script.


https://community.servicenow.com/thread/164918


https://community.servicenow.com/thread/176264


Hi Pradeep,


Thanks for the reply. But we are trying for an alternative to the mail script.


Kalaiarasan Pus
Giga Sage

Instead of doing this on the mail url's, I would suggest you to make use of view rules. Based on the type of ticket, redirect to the view needed. If the setup is in place on the instance, you would not be needed to make changes elsewhere.


Hi Kalaiarasan,


                          Thanks for the reply. I have tried now what you suggested. But that will change the view when they see in the instance. We just want the view to be changed when they opens it from the link in the notification. Can you please suggest me for that