Skip to Main Content
Tenjin Ideas Portal
Status Shipped
Created by Guest
Created on Sep 14, 2021

Flow: Paging with REST APIs

Supplied by Gus, documented by Rich...

When calling REST APIs that support paging, or when there is a large array, is there something we can do that makes supporting paging simpler?

Currently we have the ForEach action but in order for the flow designer to support paging they have to maintain all the page-state info themselves.

  • Attach files
  • Guest
    Reply
    |
    Feb 10, 2022

    The "hasMorePages()" functionality, which covers this a little, was added November 2021 during the ServiceNow in Flow development: https://biomni.visualstudio.com/BottKitt/_workitems/edit/3426 - v2.20.


    Additional update from Rich:

    I think the hasMorePages function comes under this umbrella, but all it does is a simple bit of maths.

    I guess the nirvana is “something” so users don’t have to get so involved in the paging / array manipulation. We’ve talked about a ForEach-Page action before, with Gus’s latest flows he wants to page forward and backwards, so it would need to support that; which I think would technically mean it's not a ForEach-Page more a Paging-Action.

    "hasMorePages()" does it a bit, but I think (as always) there could be more.