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

Arnoud Kooi
ServiceNow Employee
ServiceNow Employee

Ar'nt, you looking for Inform analytics?

(actually, this creates a UI Action, you could edit if you want)

Docs site Inform Analytics

thanks for input Arnoud,

no I hadn't looked at that.  And actually in myscenario I'm building a very specific view of risk records and a dashboard for an executive level of our employees, so the interface has to be very easy to navigate and show a very specific set of metrics (my widgets on the dashboard).  This is why I needed to be able to direct the user directly to the dashboard from an obvious link button (my UI Action form button).  These users are not daily ServiceNow users at all, so I just needed to be able to present a couple custom views of the records.

I can't get too complex...but that looks very interesting!