Hi All,
this is rather generic question about how to best handle a high number of search results.
The Workfront Search module in Fusion gives you the option to set a limit on the number of search results returned, but what if I need all matching records and the number can be high (several hundreds)? For example, I need to pull a list of all Assignments in a project and process each of them. For a large and complex project with many tasks this list can be extensive.
How can I make sure that all matching records are returned and processed, while not risking to reach the 40 minutes runtime limit, etc.
Is there a way to obtain and process them in batches?
Any ideas are appreciated.
Thanks,
Tibor
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @tibormolnar here is what I've used before:
Example:
Views
Replies
Total Likes
Hi @tibormolnar here is what I've used before:
Example:
Views
Replies
Total Likes
Hi @tibormolnar,
To spare you the day I recently lost when api-unsupported started returning needle duplicates among such haystack batches, I strongly urge you to ensure the request you use in step 3 (and optionally, step 1) from @Sven-iX is SORTED to avoid such duplicates and future proof your work.
Our www.atappstore.com lowest level plumbing now inspects every such API call to Workfront prior to execution and if the count exceeds the batch size but there is no "_Sort=" within, adds a magnetic "&ID_Sort=asc" to ensure Good Behavior.
Regards,
Doug
OMG - YES - sorting is a must, thank you for adding, @Doug_Den_Hoed__AtAppStore
Had that experience too!
Seems weird the API doesn't already return a default sort...
Views
Replies
Total Likes
Thanks for this Sven!
It all makes sense conceptually. I guess I just need to learn first how to call a scenario from within another scenario (or from outside of Fusion). If you happen to know where I best start reading about that, I appreciate the link. Otherwise I'll dig in the Community topics.
Thanks,
Tibor
Views
Replies
Total Likes
Oh that part is pretty simple:
in worker scenario, you start with a webhook. Copy the hook URL
In calling scenario you have a HTTP module and set the URL to the hook URL
pass what you need to pass as fields
Views
Replies
Total Likes
Ah, I see. I learnt something new today.
(I've only used Workfront event listener webhooks so far, now I just discovered the "Webhook" modules.)
Thanks!
Views
Replies
Total Likes