How to use sysparm_view in the notification to get our desired view of the form?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2015 12:12 AM
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
we have also tried with
Click here to view the task: ${URI+&sysparm_view=BA_Termination_Task}
This appears as
Nothing worked. Can anyone suggest any solution to this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2015 12:22 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2015 12:35 AM
Hi Pradeep,
Thanks for the reply. But we are trying for an alternative to the mail script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2015 12:25 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2015 12:54 AM
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