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
pooling
Frequent Visitor

PBI Service: refresh of API dataset with bearer token authorization and changing date parameters

Hi guys, please help !

In PBI Desktop I load my client's json data via API (GET method) with authorization header (bearer token), but I fail to do it in PBI Service (in order to have automatic data refresh) because there is no place to insert my bearer token.

 

In PBI Desktop I created a list of queries, most of them have similar structure:

 

Screenshot 2021-05-14 at 17.32.56.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

But one query has 2 parameters (start date and end date) which change daily:

 

Screenshot 2021-05-14 at 17.34.56.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

When I publish my dataset to PBI Service, it says that I don't need to set a gateway connection as all of the data is in the cloud, but there is no place to insert my bearer token and eventually the dataset can't be updated from the PBI Service.

 

Screenshot 2021-05-14 at 17.47.31.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Guys, I know that you know everything, please help - how should I proceed?

I have installed on-premises data gateway on my computer, but I do not understand how I should fix this and where I should insert bearer token and these changing date parameters.

2 REPLIES 2
rodrigo_avf
Frequent Visitor

I'm having the same difficulty, has anyone found a solution for this?

ranbeermakin
Resolver III
Resolver III

@pooling don't hard code the bearer token... in such cases I usually create a custom connector. It gives you flexibility to authenticate with your own Oauth flow.

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
Top Kudoed Authors