Forum Discussion

BRVL's avatar
BRVL
Frequent Visitor
3 years ago
Solved

Web based cursor pagination issue

Hi I’ve been working on trying to use List.generate to create a paginated list from the api. My issue is that my api uses Cursor-Based Pagination. A single request will give me two sections if a curs...
  • v-yanjiang-msft's avatar
    3 years ago

    Hi BRVL ,

    Have you tried to use if function like this:

    each if Record.HasFields(_,"cursor")=true then Json.Document(... else...

    Best Regards,
    Community Support Team _ kalyj

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

  • BRVL's avatar
    BRVL
    3 years ago

    Nevermind, I've figured it myself.