Get Dashboard UUID by Dashboard Name - API

Dillon Hoefener shared this idea 5 months ago
Idea Logged

Hi,


Currently, I need to make sure I update the URL manually if a new copy is made of the target report with the new UUID. It is a frequent practice to make copies when creating new versions so I was just wondering if there was a dynamic way to get the UUID of a dashboard based on its name.


That might be a useful enhancement to add as an API function call. Get dashboard UUID by name.

Comments (6)

photo
1

Hi Dillon,


Thanks for reaching out with your suggestion. I've logged this as an Idea for an Enhancement Request. Before becoming a request, ideas will be reviewed by our Product Team and chosen for Enhancements based on feasibility, level of positive impact to the user experience, and votes from the community.


This post will be updated with any future information relevant to this process.


Thanks,

Simon

photo
1

Hi Simon,

Is there any way for me to obtain the dashboard UUID from code mode for a dashboard different from the one I'm editing?

I have a use case where we have a dashboard that links to another dashboard where we have a high-level summary on the starting dashboard and then a dashboard that has a dimension breakdown summary that users need to be able to nav to.

Thanks

photo
1

Hi Dillon,


Thanks for your question.


I'm not exactly certain what you mean here. Are you attempting to get a different Dashboard UUID from the one you are on programmatically through Javascript? If so this is not currently possible, and I do not think that this is possible due to the scoping implementations that the Developers have put in place. This is also the reason you can't declare 'global' functions for Javascript Charts, rather you need to declare them again on each new Code Mode scope.


Let me know if I've understood this correctly.


Kind regards,

Simon

photo
1

Hi Simon,

Yes, that is correct. So, since I cannot obtain a different dashboard's UUID from the code mode of the dashboard I'm in, how would I be able to link to one dashboard from another? Right now, since the URL takes the dashboard UUID as parameter to nav to a dashboard, I have to hardcode the UUID in code mode, which is unreliable since this will change over time.

photo
1

Hi Dillon,


That assumption is incorrect. The UUID of a piece of content should never change. The only time it would change would be when a copy is made of it, where the copy would have a new UUID, as it is a new and different piece of content from the original. Content IDs change, as iterations are made over time such as edits. This helps to track changes. I've attached a small screenshot that should help demonstrate this from the Database.


/ba3ffd917c3bcb094772d730fc381851


Let me know if this clear and works with your setup.


Kind regards,

Simon

photo
1

Simon,

Got it, given your explanation I expect it is not an issue to hardcode the UUID in the code then, so this is what I've done. Thanks for the explanation.