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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

Getting Data from POST API with JSON Body

How can I use web.content to get data from POST API function

 

Here's an example of invoking that API 

POST https://YOURSERVER/ws/schema/query/com.mycompany.mydivision.student.studentnumber
Accept: application/json
Content-Type: application/json
Authorization: Bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

 

Note: I was able to connect and easly get the access token without any problems.

 

Please advise ?

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi @mohammed_essam 

 

Please refer to the following document, hope it can help you.

https://docs.microsoft.com/rest/api/power-bi/datasets/get-datasources 

 

Best Regards,

Community Support Team _Charlotte

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

lbendlin
Super User
Super User

Providing a Content payload in a Web.Contents  call's options section will convert the call from GET to POST.

 

Web.Contents - PowerQuery M | Microsoft Docs

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.