I have a business requirement where for each salesforce user I need to get all opportunities closed today and send combined single email to each user combining multiple closes opportunities per user using compose function.
when I try to do it it says This output is an array. A foreach cannot be nested inside of another foreach.
Requirement-
For each salesforce user every night get all closed opportunities (close date as today) and combine those closed opportunities in a single email(per user) and send email to each user(with a list of closed opportunities with date)
How to do this?
I tried using get salesforce users and then for each get opportunities with close date as today (I can not add second condition where owner id is for each user)