Collect the user IDs associated with the assigned service resource records and add them as recipients to the email notification list.
Required Editions
| Available in: Lightning Experience. |
| Available in: Enterprise and Unlimited Editions |
| User Permissions Needed | |
|---|---|
| To open, edit, or create a flow in Flow Builder: | Manage Flow |
| To run a flow: | Run Flows |
- In Flow Builder, from the Elements panel, drag Loop onto the canvas.
- Enter a name, such as Loop Assigned Resources, and an API name, such as Loop_Assigned_Resources.
- For Collection Variable, enter {!AssignedResourceRecords}, and then click Done.
- Connect the Loop element with the Get Assigned Resources element.
- In Flow Builder, from the Elements panel, drag Assignment onto the canvas.
- Enter a name, such as Add Resource as Recipient, and an API name, such as Add_Resource_as_Recipient.
-
Under Set Variable Values, click + New Resource, and configure
the resource.
- For Resource Type, select Variable.
- Enter an API name, such as RecipientIds.
- For Data Type, select Text.
- Select Allow multiple values (collection), and then click Done.
- For Operator, select Add.
- For Value, enter {!Loop_Assigned_Resources.ServiceResource.RelatedRecordId}, and then click Done.
- Connect the Loop Assigned Resources Loop element with the Add Resource As Recipient Assignment element.
- Connect the Add Resource As Recipient Assignment element to the Loop element.
- For the loop connector, select For each item in the collection, and then click Done.
Add the parent record associated with the service appointment to the email notification list.