cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dwales Frequent Visitor
Frequent Visitor

Dashboard List API Endpoint After Renaming

Our staging environment has 3 dashboards on it. After completing the 3 we decided to rename them to be more fitting. After doing so, our powershell deployment script that communicates with the REST API was blowing up. Upon some investigation we discovered that renaming dashboards does not remove them from being returned from the "https://api.powerbi.com/v1.0/myorg/groups/{groupId}/dashboards" endpoint. This was returning 4 dashboards, despite our staging environment only having 3. Our script was blowing up because we had renamed some dashboards to new names, and then renamed other dashboards to names that were previously in use, but this endpoint was only finding the dashboards that first used the name, but with invalid reportId's (they did not exist in any of our workspaces).

1 ACCEPTED SOLUTION

Accepted Solutions
dwales Frequent Visitor
Frequent Visitor

Re: Dashboard List API Endpoint After Renaming

My mystery dashboard seems to have just appeared in my list out of the blue, so I was able to delete it. Everything seems to be as expected now, thanks!

4 REPLIES 4
Moderator v-qiuyu-msft
Moderator

Re: Dashboard List API Endpoint After Renaming

Hi @dwales,

 

Would you please share detail steps for us to reproduce the issue? Do you use Powershell to call the Power BI rest API? If it is, please share detail script. 

 

I have tested with https://api.powerbi.com/v1.0/myorg/groups/%7BgroupId%7D/dashboards in Postman before and after renaming dashboards, but not reproduce the issue, dashboard only returned with updated name. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
dwales Frequent Visitor
Frequent Visitor

Re: Dashboard List API Endpoint After Renaming

Hi @v-qiuyu-msft,

 

I've done some further investigating. It appears that this endpoint returns dashboards that are in use in an app as well as visible on the workspace. This was a portion of our issue, as I would rename and it would appear to me that it was still there, but I was at the time unaware that it was marked as readonly and therefore was the version published in the app. Until I published the new dashboard it would of course not update the name for the readonly version.

 

I am still in a position where we have 3 dashboards in our workspace and the endpoint returns 7 dashboards, so there is still one that is unaccounted for. It is marked as not read only, so I would have expected it to show up in the service UI for me to delete, but it does not. I have not been able to duplicate this behavior, so I am uncertain how to proceed. Our script is using PowerShell to make REST calls to the Power BI REST API, but I am using Postman for debugging purposes, which is showing me the 7 dashboards from the endpoint.

dwales Frequent Visitor
Frequent Visitor

Re: Dashboard List API Endpoint After Renaming

My mystery dashboard seems to have just appeared in my list out of the blue, so I was able to delete it. Everything seems to be as expected now, thanks!

Moderator v-qiuyu-msft
Moderator

Re: Dashboard List API Endpoint After Renaming

Hi @dwales,

 

As the issue is now, I will close this thread. If the issue happens again next time, please create a new thread. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.