- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2023 05:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 12:04 AM
Hi @AndersBGS ,
I've discovered the answer. I changed a few things and ran a script, but your solution wasn't entirely accurate.
In the pa_m2m_dashboard_tabs table, create a new item by inserting any records that are present in the target dashboard and updating the order value (I changed it to 6 in this case). Next, execute the script that is below.
var gr = new GlideRecord('pa_m2m_dashboard_tabs');
gr.addEncodedQuery('dashboard.nameSTARTSWITHdemo^order=6');
gr.query();
if(gr.next()){
gr.tab='baa47e0f9386b5905fe03d058aba1017';
gr.update();
}
This code updates the tab from source dashboard to the target one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2023 05:22 AM
Hello @geogeorge
- Log in to the instance, with an account that has the permissions to view the dashboard to be copied.
- Click the Contextual menu on the dashboard screen. If no contextual menu is found, this is most probably a non-responsive dashboard, so the instructions below for copying a non-responsive dashboard should be used instead.
- From the pop-up menu that appears, select the option titled Duplicate Dashboard.
- The copy will be created and displayed on the form. The name of the dashboard will default to Copy of <Name of Copied Dashgoard>. Thus, you will probably prefer to rename this to something more meaningful. To do this, click the contextual menu on the new, copied dashboard and select the option titled Dashboard Properties. In the Dashboard Properties window that appears, set the Name field of the Dashboard to the name you would like this dashboard to have.
Plz mark my solution as Accept, If you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2023 06:07 AM
Hi @Samaksh Wani This is not something I am looking for. We have created a duplicate dashboard and created a new tab there. We need to move/copy the new tab to the original dashboard now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2023 06:26 AM
Hi @geogeorge ,
Please see this community post which had the same requirement as yours: https://www.servicenow.com/community/itsm-forum/in-a-dashboard-how-can-i-copy-an-existing-tab-to-ano...
In short it states:
"Add a new entry in the pa_m2m_dashboard_tabs table. Since tabs can often have the same name in different dashboards, I like to go to dashboard properties and open the record for the tab I want to copy. Then I change the dashboard and do an insert and stay. The tab should now be on both dashboards. Be careful as it is the same tab. If you rename it one, you are renaming it on both."
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 12:04 AM
Hi @AndersBGS ,
I've discovered the answer. I changed a few things and ran a script, but your solution wasn't entirely accurate.
In the pa_m2m_dashboard_tabs table, create a new item by inserting any records that are present in the target dashboard and updating the order value (I changed it to 6 in this case). Next, execute the script that is below.
var gr = new GlideRecord('pa_m2m_dashboard_tabs');
gr.addEncodedQuery('dashboard.nameSTARTSWITHdemo^order=6');
gr.query();
if(gr.next()){
gr.tab='baa47e0f9386b5905fe03d058aba1017';
gr.update();
}
This code updates the tab from source dashboard to the target one.