cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lkaspar
Helper I
Helper I

Pagination Error with Zendesk API

Hi All,

 

I am using the Zendesk API to get a list of users in Zendesk - Zendesk developers - API docs.

 

The maximum number of records returned per page is 100.

 

When I issue a GET request without pagination turned on, it only fetches the first 100 records

lkaspar_0-1617849651721.png

 

If I turn on Pagination and set the threshold to 100 

 

lkaspar_1-1617849764283.png

 

I get this error:

 

The response is not a valid paginated response. The paginated response is missing a property 'value' of type array.

 

 

The schema of the response looks like this:

 

 

{
    "type": "object",
    "properties": {
        "users": {
            "type": "array",
            "items": {
            }
        },
        "next_page": {
            "type": "string"
        },
        "previous_page": {},
        "count": {
            "type": "integer"
        }
    }
}

 

 

It looks like Flow is complaining about the property being called users and not value.

 

Any help would be appreciated.

 

4 REPLIES 4
ChristianAbata
Super User II
Super User II

hi @lkaspar  if the error is on compose , what you need to do is change the inside compose formula, because if you active the pagination the schema could be different. And the expressions are not updated automatically



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
lkaspar
Helper I
Helper I

Hi @ChristianAbata  - the error is on GetUsers

lkaspar_1-1617851116296.png

 

 

I am using the Compose to see how many records are actually returned.

 

ChristianAbata
Super User II
Super User II

@lkaspar  could you try adding this to your schema {"body":{"value":[]}}



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
lkaspar
Helper I
Helper I

@ChristianAbata - I am afraid I don't know where you want me to modify the schema. I am not able to issue the GET request or receive a response which I could parse if I turn on pagination. Flow just fails with this error

lkaspar_0-1617851646551.png

 

 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,177)