- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2019 06:01 AM
Good day team
I'm having a conundrum with setting a view using a UI Action. It worked previously and doesn't seem to want to now. I have used the following to set the view when a UI Action is clicked:
var link ="sc_request.do?sys_id="+sysID+"&sysparm_view=Account_Request";
When that didn't work, I searched the community and attempted to use this:
task.set('sysparm_view', 'Account_Request');
task.set('sysparm_view_forced','true');
Any help is appreciated.
Regards,
Scott
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2019 05:33 AM
Moved this up to after the tasksys.insert and it works
var link ="sc_request.do?sys_id="+task.sys_id+"&sysparm_view=account_request";
action.setRedirectURL(link);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2019 06:49 AM
Are you absolutely sure that Account_Request is the name of the view? To be sure, go to the table sys_ui_view.
Then look for the TITLE that matches your view name. This is the display value. The sysparm_view arg requires the name. In this example, the title is "Self Service", but the name is "ess". Use the name on the URL, not the title.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2019 07:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2019 09:07 AM
I just adjusted it to lower case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2019 07:01 AM
I'm absolutely sure 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2019 08:35 AM
Hi,
How are you redirecting it?
Is it from client side or server side ui action?
Also is there any view rule for that table? check this
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader