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

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
Super User

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 II
Helper II

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
Super User

@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 II
Helper II

@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.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Top Solution Authors
Users online (1,629)