How to get more than 2000 collection in Workfront Custom API module output? | Community
Skip to main content
sethuanand2626
New Participant
November 3, 2023
Solved

How to get more than 2000 collection in Workfront Custom API module output?

  • November 3, 2023
  • 2 replies
  • 1359 views

I'm trying to read the value list of field by using Custom API module. The value list of the field count is more than 2000. How to get more than 2000 collections in Custom API module output.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ChrisStephens

You cannot, 2000 is the maximum number you can receive. If you need to receive more than 2000, you will have to paginate your calls. Refer to here, https://experienceleague.adobe.com/docs/workfront/using/adobe-workfront-api/api-general-information/api-basics.html?lang=en, about a third of the way down.

2 replies

New Participant
November 3, 2023

You'll have to have a Repeater module ahead of that custom API call to grab multiple pages of results.

I'd recommend making the same Custom API request with the count filter to determine how many values there are.  Divide that count by the number of results you request from the subsequent Custom API calls (default is 100 results per response, max is 2000), then use that result as the number of times you want to iterate over the call that gets the nitty-gritty details.

 

https://experienceleague.adobe.com/docs/workfront/using/adobe-workfront-api/api-general-information/api-basics.html?lang=en#using-paginated-responses

sethuanand2626
New Participant
November 6, 2023

Thanks for you help Rick. I'm able to select one answer as correct. 🙂

ChrisStephens
ChrisStephensAccepted solution
New Participant
November 3, 2023

You cannot, 2000 is the maximum number you can receive. If you need to receive more than 2000, you will have to paginate your calls. Refer to here, https://experienceleague.adobe.com/docs/workfront/using/adobe-workfront-api/api-general-information/api-basics.html?lang=en, about a third of the way down.