I am looking for the “add item” or “map toggle” in the Array Aggregator for “aggregated fields.” I am using ChatGpt and this is what I’m dealing with…Option 1 — Reveal the hidden “Map / Add item” in Array aggregator
You do have the right module. You just need to switch that section into mapping mode.
-
In Array aggregator (green panel):
-
Source module:
Iterator [3] -
Target structure type:
Custom
-
-
In the Aggregated fields header row, look on the far right for a tiny “Map” toggle (sometimes it’s offscreen).
-
If you don’t see it:
-
Zoom out the browser to 90%
-
Widen the right panel, or
-
Click the ⋮ (kebab) menu at the very top-right of the green panel and select Switch to mapping (wording varies).
-
-
-
When Map is ON, the checkboxes disappear and you’ll see a purple “+ Add item” at the bottom-right of that section.
-
Click + Add item four times and set:
Group by (field under that section): select
userEmail.-
employee_name → Aggregation: first → Value:
userName -
regular_hours → Aggregation: sum → Value (click fx, paste):
if( type = "TIME_OFF"; 0; round( duration / 3600 ; 2 ) ) -
pto_hours → Aggregation: sum → Value:
if( and( type = "TIME_OFF"; lower( if( empty( timeOffType ); ""; timeOffType ) ) = "vacation" ); round( duration / 3600 ; 2 ); 0 ) -
holiday_hours → Aggregation: sum → Value:
if( and( type = "TIME_OFF"; lower( if( empty( timeOffType ); ""; timeOffType ) ) = "holiday" ); round( duration / 3600 ; 2 ); 0 )
-

