I’m in a similar position and can’t seem to figure out how to iterate through all of the pages with the information I get from the API. The API I’m calling is very barebones, not including the total number from the call or page number. Here’s a example response:
[
{
"enrollment_id": 1223524,
"content_type": "Store Purchase",
"module_name": "Module 1",
"user": {
"id": 111111,
"first_name": "TEST",
"last_name": "PERSON 1",
"email": "example@test.com"
},
"campaign_name": "Campaign 1",
"enrollment_date": "2023-02-15T15:10:57.000Z",
"start_date": null,
"completion_date": null,
"status": "Not Started",
"time_spent": 0,
"policy_acknowledged": false
},
{
"enrollment_id": 1223525,
"content_type": "Store Purchase",
"module_name": "Module 1",
"user": {
"id": 111112,
"first_name": "TEST",
"last_name": "PERSON 2",
"email": "example@test.com"
},
"campaign_name": "Campaign 1",
"enrollment_date": "2023-02-15T15:10:57.000Z",
"start_date": "2023-02-18T19:43:31.000Z",
"completion_date": "2023-02-18T20:08:04.000Z",
"status": "Passed",
"time_spent": 1574,
"policy_acknowledged": false
}
]
Here are my original Query Parameters:
![]()
But the problem is I can’t figure out how to increment the page parameter in the pagination section. I’ve figured out how to trigger pagination via the $entity.length comparison, but not how to grab the next page:
![]()
Any help is greatly appreciated.