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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
nkarduri
New Member

Power BI Desktop and REST API - POST METHOD

Hi Everyone,

 

I'm trying to connect to my external application through RESTFUL WEB services from powerbi desktop.  I'm new to powerbi application, could you please help me out.

 

 

let
url = "https://XXX/api/",
body = "{""token"": ""XXXXXX"",""content"":""record"",""format"":""json"",""type"":""flat"",""returnformat"":""json"" 
}",
Source = Json.Document(Web.Contents(url,[ 
Headers = [#"Content-Type"="application/json"],
Content = Text.ToBinary(body) 
] 
))
in
Source

image.png

 

the external application supports only POST method - I tried with the Google Chrome postman with same parameters it worked. I don't know how to do it this in powerbi

 

error.png

 

 

Regards,

Naveen

5 REPLIES 5
Anonymous
Not applicable

Thanks,

 

I checked with https://blog.crossjoin.co.uk/2014/04/19/web-services-and-post-requests-in-power-query/ post, I'm getting same error.

 

Now, I'm getting the below error

 

DataSource.Error: Web.Contents with the Content option is only supported when connecting anonymously.
Details:
DataSourceKind=Web
DataSourcePath=XXXX/api

let
    url = "XXXXXXXXXXXX/api/",
    body = "{""token"": ""XXXXXXXXXXXXXXXXXXXXXX"",""content"":""record"",""format"":""json"",""type"":""flat"",""returnformat"":""json"" 
    }",
   Source  = Json.Document(Web.Contents(url,
   [ 
     Headers = [#"Content-Type"="application/json"],
     Content=Text.ToBinary(body)
   ]
   )
   )
in
   Source
Anonymous
Not applicable

Sorry, I am useless.  I just recalled Chris had posted about POST.  I would be doing to begging for help on google: https://community.powerbi.com/t5/Service/Anonymous-access/td-p/19136 🙂

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors