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

Pagination from rest API - how to retrieve all the data

Hi,

 

We have been working with a support team from Successfactors to create an API key to PowerBi. 

 

There is a lot of data in the report so they added in pagination at the end as there were only 1,000 records appearing before that, now I am getting 100 records as that is my specified parameter in the rest API. 

 

How to I get the rest of the data to feed into my visuals from the pagination ?

 

Any help would be greatly appreciated!

 

"https://api012.successfactors.eu/odata/v2/EmpJob?&$expand=emplStatusNav,businessUnitNav,divisionNav,..."

 

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

Assuming you have connect codes below, you may change your rest API like "https://api.recruiterbox.com/v2/candidates?limit=1000&offset=0. "

 

let

Source = Json.Document(Web.Contents("https://api.recruiterbox.com/v2/candidates?limit=100&offset=0")),

objects = Source[objects],

expandrecords = Table.FromRecords(objects),

 

You can refer to the similar case: https://community.powerbi.com/t5/Desktop/API-calls-with-Pagination/td-p/569785.

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Hi Amy, 

 

We have changed the rest API to various parameters, it is limited at 1,000 records. When I increase in parameter from below to 2,500 - only 1,000 records show in the report. (I've taken out the middle part of the API where we select the columns), there are probably over 25,000 records in the report. 

 

http://api012.successfactors.eu/odata/v2/EmpJob?&xpand=/name&$format=json&fromstartDate=2019-08-25&c...

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.