how to link a UI action to a dashboard?

patricklatella
Mega Sage

hi community, 

is it possible to use a UI Action form button to link the user to a dashboard, and in the same window?

thanks!

1 ACCEPTED SOLUTION

Sure.

Please use below script

gs.setRedirect('/nav_to_do?uri=/$pa_dashboard.do?sysparm_dashboard=00701c67db6c1b803c6873e1ba9619ac');

and

personal preference for the user had to be set to "Dashboards" for their home page preference.

 

find_real_file.png


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

26 REPLIES 26

ahh..wait, let me try again 

this one did not work...nothing happens when I click the form button:

gs.setRedirect('/$pa_dashboard.do?//embedded=true&dashboard=00701c67db6c1b803c6873e1ba9619ac&tab=8eb09c67db6c1b803c6873e1ba9619c2%26sysparm_list_mode%3Dgrid');

 

this one did not work either...nothing happens when I click the form button:

gs.setRedirect('/$pa_dashboard.do?//embedded=true&dashboard=00701c67db6c1b803c6873e1ba9619ac&tab=8eb09c67db6c1b803c6873e1ba9619c2&sysparm_list_mode=grid');

Can you post me the link when you open the dashboard in a Full view mode?


Please mark this response as correct or helpful if it assisted you with your question.

https://company.service-now.com/$pa_dashboard.do?embedded=true&dashboard=00701c67db6c1b803c6873e1ba9619ac&tab=8eb09c67db6c1b803c6873e1ba9619c2

Can you try this?

gs.setRedirect('?uri=$pa_dashboard.do&sysparm_dashboard=00701c67db6c1b803c6873e1ba9619ac');

 


Please mark this response as correct or helpful if it assisted you with your question.