---
schema_version: "1"
id: e98531079b4305168b602b40c33beee95e7770299d0a5a72cd9240af44a8b1f9
title: Add Assigned Service Resources to the Appointment Notification Email List
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/ls_create_loop_to_assign_service_resources_userid.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.ls_create_loop_to_assign_service_resources_userid.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d6a57e53fba361052628a766baea033be94d1856c4d06e5e721da62cb9a4f98b
description: Collect the user IDs associated with the assigned service resource records and add them as recipients to the email notification list.
products:
  - Scheduler
  - Salesforce Platform
release: "264"
---
# Add Assigned Service Resources to the Appointment Notification Email List

Collect the user IDs associated with the assigned service resource records and add them as recipients to the email notification list.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong> and <strong>Unlimited</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d28824e66">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d28824e66 ">To open, edit, or create a flow in Flow Builder:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d28824e66 ">Manage Flow</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d28824e66 ">To run a flow:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d28824e66 ">Run Flows</td>

          </tr>
        </tbody>
      </table>

1. In Flow Builder, from the Elements panel, drag **Loop** onto the canvas.
2. Enter a name, such as Loop Assigned Resources, and an API name, such as Loop\_Assigned\_Resources.
3. For Collection Variable, enter {!AssignedResourceRecords}, and then click **Done**.
4. Connect the Loop element with the Get Assigned Resources element.
5. In Flow Builder, from the Elements panel, drag **Assignment** onto the canvas.
6. Enter a name, such as Add Resource as Recipient, and an API name, such as Add\_Resource\_as\_Recipient.
7. Under Set Variable Values, click **\+ New Resource**, and configure the resource.
    1. For Resource Type, select **Variable**.
    2. Enter an API name, such as RecipientIds.
    3. For Data Type, select **Text**.
    4. Select **Allow multiple values (collection)**, and then click **Done**.
8. For Operator, select **Add**.
9. For Value, enter {!Loop\_Assigned\_Resources.ServiceResource.RelatedRecordId}, and then click **Done**.
10. Connect the Loop Assigned Resources Loop element with the Add Resource As Recipient Assignment element.
11. Connect the Add Resource As Recipient Assignment element to the Loop element.
12. 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.