web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / PowerBi REST API calls...
Power Automate
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

Categories:
I have the same question (0)
  • Kuby72 Profile Picture
    11 on at

    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()]])),

  • MJain Profile Picture
    2,450 on at

    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

  • Verified answer
    Kuby72 Profile Picture
    11 on at

    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

  • Davis-Z Profile Picture
    5 on at

    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'?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard