Expand my Community achievements bar.

Interested in getting an Adobe Workfront certification? Don't miss our AMA on June 10th, where our experts will be available to answer any questions you may have about getting certified!

Fusion: Getting Project Count by Status

Avatar

Level 2

Hi, 

I am trying to find an easier way to do this, my current solution works, but intermittently results in empty values. I am looking at the number of projects in each status and then pushing it back to Workfront for daily reporting. 

I am searching for a list of projects, then using a numeric aggregator module to get the number of projects in each status (this works perfectly). The aggregator module gives me an array of collections, with each collection containing Status and the count. Then I use an Arrar Aggregator module to combine all the statuses and counts into a single array. Finally, a Set Multiple Variables module will be used to set the count of each status to a matching variable that can be used in the workfornt update call. The Set Multiple Variable is where empty values are recorded intermittently. 

Screenshot 2025-04-18 at 1.48.24 PM.pngScreenshot 2025-04-18 at 1.48.37 PM.pngScreenshot 2025-04-18 at 1.48.45 PM.pngScreenshot 2025-04-18 at 1.49.05 PM.png

 

Screenshot 2025-04-18 at 2.01.42 PM.png

 

Topics

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

4 Replies

Avatar

Level 6

Lawson02_0-1745006731512.png

Lawson02_1-1745006741747.png

Lawson02_2-1745006754127.png

Lawson02_3-1745006764899.png

Edit: You do not need the 1 in the value space in screenshot 1. I thought you did but I guess not.

 

I get results from set multiple vars CPL: 110 and DED: 17

 

I used sort on array so that I could hard code the get() function's values 1, 2. If you don't want to do this you don't need to sort and can just use conditional logic to get each value in the right spot.

 

 

Avatar

Level 2

Thanks for sharing! Sort definitely would be an upgrade, but it still relies on 1.result/2.result, and I wanted to get away from that as I have seen intermittent failures with that. Or maybe the failures resulted from the conditional logic that I have in there. 

Will try this!

 

Avatar

Level 6

Add a null check. if(get(4.array; "2.result") = null; 0)

Avatar

Community Advisor

I'm not clear on what you have in the setvalue module. 

 

If all you want is a count per status, this is what I would do: For each unique status in the collection, it'll use map() to create the list and get the list's length. 

retrieve the status count e.g. for CUR with {{ get( 155.statuses  ; "CUR" )  }}

SveniX_0-1745256982333.png