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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
damkal
New Member

Collecting all pages from API paginated by cursor

Hello,

 

I'm strugling with collecting all data from API which is paginated by cursor. On every page I have 1000 records to collect. When I call my API for first page I got table which looks like that

damkal_0-1729504096859.png

In rows I have list of my data from page and below I have cursor which should I use for reaching next page. After searching many of topics I have created below M code

damkal_1-1729504244983.png

but when I run it Power BI create a list with data as expected, but every 1000 records are same from the first page. It looks like code is not replacing Options in my FnGetOnePage function with the new one. Can someone help me with this error?

1 REPLY 1
lbendlin
Super User
Super User

Looks like that cursor is Base64 encoded (MTAwMA== is 1000).  Consult the API documentation on how they like to receive that cursor for retrieval of the next page.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.