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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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