Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

PowerBi REST API calls via HTTP conector

(0) ShareShare
ReportReport
Posted on by 11

Hi, 

I am doing flows using HTTP connector for calling Power BI REST API. I am succesfull with calls  GET Datasets in Group, GET Groups, Get Refresh history in Group and I am able to load result into PowerApps. But calls GET Parameter in Groups neither Update Parameters in Group are always failing and I dont know why. I would appreciate any hint...

 

I always test everything on page https://docs.microsoft.com/en-us/rest/api/power-bi/ via Try IT and entering requested Id's manually and both calls are here successfull. Below you can see fail message and later setup and used parameters of HTTP call in Flow. Failmessage.pngFlowSetupGETparameters.pngFlowSetupUpdateparameters.png

  • Davis-Z Profile Picture
    5 on at
    Re: PowerBi REST API calls via HTTP conector

    Hi, @Kuby72 and @ManishJain , in many cases, for security and privacy reasons, may I ask is there a way that we can avoid to hard code the credential within the http request? is there an another way instead of 'grant_type = password'?

  • Verified answer
    Kuby72 Profile Picture
    11 on at
    Re: PowerBi REST API calls via HTTP conector

    Hi ManishJain,

    yes I am using POST, I shared not right printscreens... Today morning I recieved advice form my friend - link to Carl de Souza article  https://carldesouza.com/how-to-authenticate-and-use-the-power-bi-api-inside-power-automate/ and I found out, that in my flow is missing client secret parameter. I added it into http call a nd it works now for all calls.

    PostPBIToken_a.pngPostPBIToken_b.png

  • MJain Profile Picture
    2,450 on at
    Re: PowerBi REST API calls via HTTP conector

    Hi @Kuby72 ,

     

    Are you sure you are using POST verb for updating the data. In the description you have mentioned GET . Can you please confirm. 

     

    Also since you are calling Power BI api I would suggest using "HTTP Request using Azure AD" you do need to create or get token first . It automatically takes care of it.

     

    Thanks

  • Kuby72 Profile Picture
    11 on at
    Re: PowerBi REST API calls via HTTP conector

    I forgot to say, that same fails I have with both Calls in Power BI query

    let
    Source =
    Json.Document(Web.Contents("https://api.powerbi.com/v1.0/myorg/groups/"&GroupID&"/datasets/"&DatasetID&"/parameters",
    [Headers=[Authorization="Bearer "&GETAccessToken()]])),

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow