Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
LABORSAL
Advocate II
Advocate II

PowerBI REST API

Hello!

 

I'm no expert in any programming language so it's been real hard to figure this one out.

 

What I want to accomplish is using the PowerBI REST API which would be triggered by a flow which would refresh a few dataflows (in order) when a file is updated in a OneDrive folder.

 

The problems I'm running into are 2:

1) The Authentication Key seems to expire after ~30m, when I run the test in documentation and copy that key it works fine for a few mins, however after about half an hour i get a 403 no authorization reply.

 

2) I understand from the API documentation I can request an answer on WHEN it finishes (which would allow me to know when to start the next update) however I don't see this in the response (might a flow question but may apply here as well :P)

{
  "notifyOption": "MailOnCompletion"
}

 

Documentation found:

Dataflow Dcoumentation:

https://docs.microsoft.com/en-us/rest/api/power-bi/dataflows/refreshdataflow

 

How to get Auth

https://docs.microsoft.com/en-us/power-bi/developer/embedded/get-azuread-access-token

1 ACCEPTED SOLUTION
Jayendran
Solution Sage
Solution Sage

Hi @LABORSAL ,

 

1. You have to generate the access token on the fly not like copy and pasting. Please refer https://powerusers.microsoft.com/t5/Building-Flows/Microsoft-Flow-Token-Authentication-https-graph-m...

 

2. The notifyOption is a request Body parameter, it is not a JSON output reponse   

View solution in original post

2 REPLIES 2
Jayendran
Solution Sage
Solution Sage

Hi @LABORSAL ,

 

1. You have to generate the access token on the fly not like copy and pasting. Please refer https://powerusers.microsoft.com/t5/Building-Flows/Microsoft-Flow-Token-Authentication-https-graph-m...

 

2. The notifyOption is a request Body parameter, it is not a JSON output reponse   

This seems to be it, although getting the data is another really comlpicated topic 😛

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.