Sample Flow That Populates a Collection Variable
- Finds all user records whose City is "San Francisco" andpopulates employeesInSF with those records’ Email.Because employeesInSF is an sObject collection variable, use a Fast Lookup element to populate the variable.
- Loops through the sObject collection variable so that it can look at each individualuser record. The loop copies the values of each item in employeesInSF to loopVariable.
- For each iteration, assigns the user's Email to a collectionvariable that has a Data Type of Text.
- When the loop ends, the flow sends an email to the users whose emails are now storedin emails_employeesInSF.