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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / PowerBi REST API calls...
Power Automate
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard