Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

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.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/... about a third of the way down.

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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/... about a third of the way down.

Avatar

Level 4

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

Avatar

Level 3

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