Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Set chrome toolbar icons to take you to a report

David52
Tera Contributor

David52_0-1726151926093.png

I am trying to figure how to link the chrome_toolbar icon so that when it is clicked it takes you to a saved report in servicenow.

2 REPLIES 2

Samdavid1
Tera Contributor

Hello @David52 , did you figure out a way to do this?

Priscilla Muiua
ServiceNow Employee
ServiceNow Employee

Hi @David52 ,

 

Proposed solution:

 

  1. Locate the Saved Report
  • Navigate to Reports > View/Run in ServiceNow.
  • Open the saved report you want to link.
  • Copy the URL of the report from the browser's address bar.
  1. Access UI Builder
  • Navigate to All > Now Experience Framework > UI Builder.
  • Open your workspace (e.g., GRC Workspace) in UI Builder.
  1. Configure Chrome Toolbar
  • In UI Builder, click on View experience settings (upper-right corner).
  • Select Advanced Settings under the General section.
  • Locate the chrome_toolbar property in the related list of UX Page Properties.
  1. Add Toolbar Icon Configuration
  • Open the chrome_toolbar property and edit its JSON configuration.
  • Add a new JSON object for your report link:

json

{

    "id": "saved_report",

    "label": {

        "translatable": true,

        "message": "Saved Report"

    },

    "icon": "document-outline", // Choose an appropriate icon

    "routeInfo": {

        "route": "/nav_to.do?uri=<REPORT_URL>"

    },

    "group": "top",

    "order": 500,

    "availability": {

        "roles": ["admin", "report_user"] // Adjust roles as needed

    }

}

Replace <REPORT_URL> with the URL of your saved report.

  1. Save and Refresh
  • Save the updated chrome_toolbar property.
  • Refresh your workspace or clear cache using /cache.do.

 

Thank you.