Forum Discussion
Sam_Kumar
Jan 14, 2025Brass Contributor
Help In Editing Data Source Credentials in PowerShell for Power BI Embedded Dashboards in D365 CRM
Hello, We are currently migrating Power BI embedded dashboards from one Dynamics 365 CRM tenant to another. The process involves creating a new Power BI report within a workspace. Since the Dynamics...
Andres-Bohren
Jan 28, 2025Iron Contributor
Hi Sam_Kumar
https://stackoverflow.com/questions/77939584/how-to-do-the-authentication-to-run-power-bi-rest-api-in-an-azure-function-powe
Login-PowerBIServiceAccount
Invoke-PowerBIRestMethod -Url 'https://api.powerbi.com/v1.0/myorg/admin/dataflows' -Method GET
or if you have the Access Token use it in the Headers
$headers = @{ Authorization = "Bearer $accessToken" }
$Result = Invoke-WebRequest -Uri $Url -Method GET -Headers $headers
Kind Regards
Andres