Hello
My struggle is that I have an array from querying Workfront's "Read a Record" module.
As shown in the screenshot, the output contains a tasks array (1-9):
What I wanted to do is:
If the task name of an item (in the array) equals "ABC", do this;
Otherwise, do that
How best to do this kind of filtering condition to an array in Fusion?
Please could someone shed some lights on this?
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @ibmfur - Add the "Iterator" module next to it, and map "tasks" array to get the tasks as bundles that you can filter.
Views
Replies
Total Likes
Hi @ibmfur - Add the "Iterator" module next to it, and map "tasks" array to get the tasks as bundles that you can filter.
Views
Replies
Total Likes
You can also use the map() function to do some filtering. Check out the "array" functions. (https://experienceleague.adobe.com/en/docs/workfront/using/adobe-workfront-fusion/functions-in-fusio...)
But yes, the iterator approach from Manish is the most common way to think about this problem.
Views
Replies
Total Likes
Great stuff. Havent used the map() function before but thanks for sharing this.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies