---
schema_version: "1"
id: f0bc990ca2e5e3b56030d699d5b6838276fdcf4a108c22858e050496cca71e94
title: Get Service Resource Name
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/ls_get_service_resource_name.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.ls_get_service_resource_name.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 00bcff17ff2fd89460e38282e3c6bb8894f4b3fd634381a337287fd4fa168539
description: Retrieve the name of the service resource from the service resource ID.
products:
  - Scheduler
  - Salesforce Platform
release: "264"
---
# Get Service Resource Name

Retrieve the name of the service resource from the service resource ID.

### 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="d33694e66">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d33694e66 ">To open, edit, or create a flow in Flow Builder:</td>

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

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

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

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

1. From the Elements panel, drag **Get Records** onto the canvas.
2. Enter a name, such as Get Service Resource Name, and an API name, such as Get\_Service\_Resource\_Name for the element.
3. In the Object field, select **Service Resource**.
4. From the Condition Requirements dropdown, select **All Conditions Are Met (AND)**.
5. Add this condition:
    
    - **Id** in Field
    - **Equals** in Operator
    - **{!ServiceResource.ServiceResourceId}** in Value
6. For How Many Records to Store, select **Only the first record**.
7. For How to Store Record Data, select **Choose fields and assign variables (advanced)**.
8. Under Select Variable to Store Lead, in the Record field, click **\+ New Resource**.
9. In the New Resource dialog:
    1. From the Resource Type dropdown list, select **Variable**.
    2. Enter an API name, such as ServiceResourceName for the record.
    3. From the Data Type dropdown list, select **Record**.
    4. In the Object field, select **ServiceResource**, and then click **Done**.
10. In the Field field, select **Name**.
11. Select **When no records are returned, set specified variables to null**, and then click **Done**.
12. Connect the Get Assigned Resource element with this Get Records element.

Add an Update Records element to update service resource record with service resource name.