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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

New Member

POST to Rest API while being authenticated with Organizational account

when i do a request like this

Kilde = Web.Contents("", [Content=Text.ToBinary("json goes here")])

 ill get an error saying i have to be connected anonimously to add content.

then i tried using WebAction.Request instead, but it just crashes with an unexpected error.



Kilde = WebAction.Request(WebMethod.Post, "", [Content=Text.ToBinary("json goes here")])

If anyone has any examples on how to use WebAction.Request, it would be highly appreaciated. or any other ways of sending a post request with some json to an API 

Community Support
Community Support

Hi @Ballzer0 , 

When you use web connector to connect this datasource, you should choose corresponding authentication type when connecting(you could delete the permission from edit queries->datasource setting, then re-connect it and choose corresponding credential type).

Or you also could pass the auth-token in it. 


 You could refer to Working with Web Services in Power Query  for details.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

this datasource needs to log who uses it. so they would not be able to give me an authorization token. The system admin said its a NO-Go unless i have user auth.


Your best course of action would be to create a Power BI Custom Connector. That would be the most ideal scenario.


Hi @Ballzer0,

Do you need to login to your account via the browser in order to get access? This is not supported by Power Query. Ideally, you would have an access token that can be used inside Web.Contents. 


@miguel published a great blog post that explains it:


Hope it helps,


Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors