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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Kathir
Frequent Visitor

Power Query API Call

Hi, I need some help. I tried to call my IoT sensor readings via an API. The data rows produced by the Power BI is limited to 100. So, I got the below mentioned codes from one of the forums. These codes supposed to append all the chunks of 100 rows into a single table. However, at this part, the run was unsuccessful. The error I received "Enter Credentials" and it’s strange that I could run the original codes without any problem and the data auto refreshed. I thought there could be an error in the codes below. Seeking help from you. Thanks 

 

Kathir_0-1659763595803.png

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Kathir ,

This seems to be a problem with account authorization. Please check the post below, hopefully the solution therein will help you.

Refresh token api call

I stumbled over a similar problem as you last year. I solved my api connection by buidling a custom data connector.

https://github.com/Microsoft/DataConnectors

 

With the connector you have a lot of possibilitys for authentication handling:

see: https://docs.microsoft.com/en-us/power-query/handlingauthentication

 

The custom Connector can be attached to the data gatway from there the api calls are made.

 

This is not a really easy way for sure but may be a solution.


Best Regards

Hi Thanks for the reply. My problem is not on authentication. My problem is on how to append each epoch of 100 records automatically. 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.