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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

API with Parameters in PBI

Hey!

 

New to PBI but hoping someone can point me in the right direction....

 

I have a API that I use to pull data from an ERP databoard via Postman but it holds various params to make it work see below:

 

API call is a POST:  

url/api/json/reply/DataboardDataRequest

 

Headers used are:  

KEYVALUE
Content-Typeapplication/json/data
X-HTTP-Method-OverrideGET

 

I also have to set some criteria like the number of the ERP databoard via the body of the API as below:

 

{"DataboardId":10043,"Parameters":{"1":"105","5":"0","10":"2019-02-01T00:00:00.000Z","11":"2019-02-28T00:00:00.000Z","20":"0"}}

This works fine and pulls back all the info i need via postman but i would like to make this a direct link via Power BI. 

 

Can anyone help in how i can recreate this call via the PBI interface?

 

Thanks in advance.

 

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Which kind of ERP do you use?

You could open "Advanced editor" in Edit queries in Power BI, write the proper code.

Here are some useful links, please check and try.

Sharing an example of pulling data from an API and getting it into Power BI

Connecting to and using the REST API in Power BI

Dynamic API parameters in Power BI

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Which kind of ERP do you use?

You could open "Advanced editor" in Edit queries in Power BI, write the proper code.

Here are some useful links, please check and try.

Sharing an example of pulling data from an API and getting it into Power BI

Connecting to and using the REST API in Power BI

Dynamic API parameters in Power BI

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors