Forum Discussion

TravisKale's avatar
TravisKale
Helper I
5 years ago
Solved

Get Dashboards As Admin Expand Tiles Not Working

In PowerShell I am issuing the following to the Power BI API to get dashboards while expanding tiles:   $dashboardsApiUrl = "https://api.powerbi.com/v1.0/myorg/admin/dashboards?$expand=tiles" #$da...
  • TravisKale's avatar
    5 years ago

    I discovered the "Try It" button on the API documentation page.   After playing with this it gave me more meaningful responses then then the Power BI Invoke-PowerBiResetMethod cmdlet does.   I discovered I needed to add the $top query parameter in order for the $expand parameter to take effect.   When using the cmdlet it apears the behavior is just to throw out the $expand parameter if $top is missing and sweep it all under the rug pretending nothing happened.  Final URL endpoint to get it working....

    https://api.powerbi.com/v1.0/myorg/admin/dashboards?$expand=tiles&$top=5000