Quantcast
Channel: Power Query topics
Viewing all articles
Browse latest Browse all 31082

API calls with Pagination

$
0
0

I almost see the light at the end of the tunnel.

 

I am able to make a connection through an API call to my data source (Okta in this case) and was very excite until I looked at the data and noticed that I only have about 100 items. 

 

From what I could find, it looks like powerbi is pulling only the first page, and I need it to pull all available pages (Please correct me if I'm wrong).

Below is the query I have (I have to hardcode the api, see - http://community.powerbi.com/t5/Integrations-with-Files-and/Power-BI-and-Okta-logs/m-p/318715#M14535)

 

 

	let
    Source = Json.Document(Web.Contents("https://<omitted>.okta.com/api/v1/logs", [Headers=[Authorization="SSWS <omitted>z", ContentType="application/json"]]))
in
    Source

 

and according to Okta's Documentation here I thnk I need to insert tel=next in my source. - https://developer.okta.com/docs/api/getting_started/design_principles.html#pagination

 

I could be completely wrong, and I need to do some kind of loop.

 

I am able to filter my queries but I only still get 100 results. 

 

Any help or suggestions?

 

 

 


Viewing all articles
Browse latest Browse all 31082

Trending Articles