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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply

Connect to API OAuth using PBI Data Flows

Hello,

 

I've an API secured with OAuth, how can I pull data from using PBI data flow. kindly find below an example of parameters I am using to connect to this API services

 

URL = 'https://sample.com/ws/schema/query/student_list'

Headers = @{ 'Authorization' = "Bearer $token" }

Method = POST

ContentType = 'application/json'

 

So does PowerBI support API with method Post for return JSON ? How Can I connect to this API service ?

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Yes, Web.Contents() with a data payload in the Content section switches from GET to POST.

 

Web.Contents - PowerQuery M | Microsoft Docs

 

 

 

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Yes, Web.Contents() with a data payload in the Content section switches from GET to POST.

 

Web.Contents - PowerQuery M | Microsoft Docs

 

 

 

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

Top Solution Authors