---
schema_version: "1"
id: e25609a2885c368acbda9234f829d12a3d57ba48924c9d118e54ab2986083e6d
title: Create the Flows for Handling Service Resource Absences in the Legacy Agentforce Builder
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/fs_agentforce_autonomous_scheduling_resource_absence_flows.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.fs_agentforce_autonomous_scheduling_resource_absence_flows.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 4ae9abad57ce68dba94196ced4b871e33f230a81016e28d7d2451fb627a5d799
description: Create two flows, one for creating the resource absence, and the other for rescheduling the service appointments.
products:
  - Field Service
release: "264"
---
# Create the Flows for Handling Service Resource Absences in the Legacy Agentforce Builder

Create two flows, one for creating the resource absence, and the other for rescheduling the service appointments.

### 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>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions with Field Service and Foundations. Also available with <strong>Einstein 1 Field Service</strong> Edition or <strong>Agentforce 1 Field Service</strong> Edition.</td></tr></tbody></table>

## Resource Absence Flow

This flow returns a list of today’s service appointments that the service resource who requested the absence is assigned to, and creates a resource absence.

Create an Autolaunched Flow that performs the following:

- Gets the service resource’s ID
- Determines the time zone and the operating hours for the primary service territory
- Determines the time zone and the operating hours for the relocation service territory
- Prevents creating duplicate absence records if the flow runs multiple times on the same day
- Finds all of the appointments assigned to the mobile worker today

### Variables

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
          <colgroup>
            <col style="width:25%">
            <col style="width:75%">
          </colgroup>
          <thead class="slds-text-title_caps ">
            <tr class="">
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d146176e136">API Name</th>
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d146176e139">Details</th>
            </tr>
          </thead>
          <tbody>
            <tr class="">
              <td data-label="API Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e136 ">saIdsFromAssignedResource</td>

              <td data-label="Details" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e139 ">
                <p>Text </p>
                <p style="margin-bottom:0;">Select to allow multiple values (collection) </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="API Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e136 ">serviceResourceSAIds</td>

              <td data-label="Details" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e139 ">
                <p>Text </p>
                <p>Select to allow multiple values (collection) </p>
                <p style="margin-bottom:0;">Available for output </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="API Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e136 ">currentDateTimeTZ</td>

              <td data-label="Details" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e139 ">
                <p style="margin-bottom:0;">Data Type: Text</p>
              </td>

            </tr>
            <tr class="">
              <td data-label="API Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e136 ">STMRelocation</td>

              <td data-label="Details" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e139 ">
                <p>Data Type: Record </p>
                <p style="margin-bottom:0;">Object: Service Territory Member </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="API Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e136 ">timeZone</td>

              <td data-label="Details" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e139 ">
                <p>Note: This variable isn’t used in the flow, but it’s required for the input of
                  the agent action. You can enter a default value here, such as UTC.</p>
                <p>Data Type: Text </p>
                <p>Default Value: “” </p>
                <p style="margin-bottom:0;">Available for input </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="API Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e136 ">varEnd</td>

              <td data-label="Details" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e139 ">
                <p style="margin-bottom:0;">Data Type: Date/Time</p>
              </td>

            </tr>
            <tr class="">
              <td data-label="API Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e136 ">varRecordTypeId</td>

              <td data-label="Details" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e139 ">
                <p style="margin-bottom:0;">Data Type: Text</p>
              </td>

            </tr>
            <tr class="">
              <td data-label="API Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e136 ">varResourceId</td>

              <td data-label="Details" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e139 ">
                <p style="margin-bottom:0;">Data Type: Text</p>
              </td>

            </tr>
            <tr class="">
              <td data-label="API Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e136 ">varStart</td>

              <td data-label="Details" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e139 ">
                <p style="margin-bottom:0;">Data Type: Date/Time</p>
              </td>

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

### Formulas

  
| API Name | Data Type | Formula |
| --- | --- | --- |
| LocalDateTimeEndOfDayFormula | Date/Time | DATETIMEVALUE(TEXT(DATEVALUE({!currentDateTimeTZ})) + " 23:59:59") |
| LocalDateTimeNowFormula | Date/Time | DATETIMEVALUE(TEXT(DATEVALUE({!currentDateTimeTZ})) + " 00:00:00") |
| TodayEndFormula | Date/Time | DATETIMEVALUE(TEXT(DATEVALUE({!currentDateTimeTZ})) + " 23:59:59") |
| TodayStartFormula | Date/Time | NOW() |

### Elements

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
          <colgroup>
            <col style="width:25%">
            <col style="width:75%">
          </colgroup>
          <thead class="slds-text-title_caps ">
            <tr class="">
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d146176e379">Flow Element</th>
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d146176e382">Configuration</th>
            </tr>
          </thead>
          <tbody>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Get Records</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Get Service Resource ID </p>
                <p>Salesforce Object: Service Resource </p>
                <p>Filter: All Conditions Are Met (AND) </p>
                <p style="margin-bottom:0;">Field: User ID, Operator: Equals, Value: Running User &gt; id </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Get Records</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Get Primary Service Territory Member </p>
                <p>Salesforce Object: Service Territory Member </p>
                <p>Filter: Custom Condition Logic Is Met </p>
                <p>1. Field: Resource ID, Operator: Equals, Value: Service Resource from Get
                  Service Resource ID &gt; Resource ID </p>
                <p>2. Field: Territory Type, Operator: Equals, Value: Primary </p>
                <p>3. Field: Start Date, Operator: Less Than or Equal, Value: TodayStartFormula </p>
                <p>4. Field: End Date, Operator: Greater Than, Value: TodayStartFormula </p>
                <p>5. Field: End Date, Operator: Is Null, Value: True </p>
                <p style="margin-bottom:0;">Condition Logic: 1 AND 2 AND 3 AND (4 OR 5) </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Get Records</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Get Relocation Service Territory Member </p>
                <p>Salesforce Object: Service Territory Member </p>
                <p>Filter: Custom Condition Logic Is Met </p>
                <p>1. Field: Resource ID, Operator: Equals, Value: Service Resource from Get
                  Service Resource ID &gt; Resource ID </p>
                <p>2. Field: Territory Type, Operator: Equals, Value: Relocation </p>
                <p>3. Field: Start Date, Operator: Less Than or Equal, Value: TodayStartFormula </p>
                <p>4. Field: End Date, Operator: Greater Than or Equal, Value: TodayStartFormula </p>
                <p>5. Field: End Date, Operator: Is Null, Value: True </p>
                <p>Condition Logic: 1 AND 2 AND 3 AND (4 OR 5) </p>
                <p>How to Store Record Data: Choose fields and assign variables (advanced) </p>
                <p style="margin-bottom:0;">Record: STMRelocation </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Decision</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Is Relocation Service Territory Member? </p>
                <p>Outcome Label: Yes </p>
                <p>Default Outcome Label: No </p>
                <p>Filter: All Conditions Are Met (AND) </p>
                <p>Resource: STMRelocation, Operator: Is Blank, Value: False </p>
                <p style="margin-bottom:0;">Default Outcome Label: No (Default) </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">No &gt; Get Records</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Get Service Territory Primary Operating Hours </p>
                <p>Salesforce Object: Service Territory </p>
                <p>Filter: All Conditions Are Met (AND) </p>
                <p>Field: Territory ID, Operator: Equals, Value: Service Territory Member from Get
                  Primary Service Territory Member &gt; Territory ID </p>
                <p>How to Store Record Data: Choose fields and let Salesforce do the rest </p>
                <p style="margin-bottom:0;">Field: OperatingHoursId </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Get Records</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Get Time Zone Primary </p>
                <p>Salesforce Object: Operating Hours </p>
                <p>Filter: All Conditions Are Met (AND) </p>
                <p style="margin-bottom:0;">Field: Operating Hour ID, Operator: Equals, Value: Service Territory from Get
                  Service Territory Primary Operating Hours &gt; Operating Hour ID </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Action</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Action: Get Current Time </p>
                <p>Label: Get Current Time Primary </p>
                <p>TimeZone: Operating Hours from Get Time Zone Primary &gt; Time Zone </p>
                <p>Manually assign variables (advanced) </p>
                <p style="margin-bottom:0;">Store Output Values: currentDateTimeTZ </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Yes &gt; Get Records</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Get Service Territory Relocation Operating Hours </p>
                <p>Salesforce Object: Service Territory </p>
                <p>Filter: All Conditions Are Met (AND) </p>
                <p>Field: Territory ID, Operator: Equals, Value: STMRelocation &gt; Resource
                  Territory ID </p>
                <p>How to Store Record Data: Choose fields and let Salesforce do the rest </p>
                <p style="margin-bottom:0;">Field: OperatingHoursId </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Get Records</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Get Time Zone Relocation </p>
                <p>Salesforce Object: Operating Hours </p>
                <p>Filter: All Conditions Are Met (AND) </p>
                <p style="margin-bottom:0;">Field: Operating Hour ID, Operator: Equals, Value: Service Territory from Get
                  Service Territory Relocation Operating Hours &gt; Operating Hour ID </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Action</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Action: Get Current Time </p>
                <p>Label: Get Current Time Relocation </p>
                <p>TimeZone: Operating Hours from Get Time Zone Relocation &gt; Time Zone </p>
                <p>Manually assign variables (advanced) </p>
                <p style="margin-bottom:0;">Store Output Values: currentDateTimeTZ </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Connect the No and Yes paths &gt; Get Records</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Get Existing Resource Absence </p>
                <p>Salesforce Object: Resource Absence </p>
                <p>Filter: All Conditions Are Met (AND) </p>
                <p>1. Field: Resource ID, Operator: Equals, Value: Service Resource from Get
                  Service Resource ID &gt; Resource ID </p>
                <p>2. Field: Start Time, Operator: Less Than or Equal , Value:
                  LocalDateTimeEndOfDayFormula </p>
                <p>3. Field: End Time, Operator: Greater Than or Equal, Value:
                  LocalDateTimeNowFormula </p>
                <p>4. Field: Type, Operator: Equals, Value: Medical </p>
                <p>How to Store Record Data: Choose fields and assign variables (advanced) </p>
                <p>Where to Store Field Values: In separate variables </p>
                <p>Field: RecordTypeId, Variable: varRecordTypeId </p>
                <p style="margin-bottom:0;">Field: ResourceId, Variable: varResourceId </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Assignment</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Assign Current Date and Time </p>
                <p>Variable: varStart, Operator: Equals, Value: TodayStartFormula </p>
                <p style="margin-bottom:0;">Variable: varEnd, Operator: Equals, Value: TodayEndFormula </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Decision</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Is Resource Absence on Gantt? </p>
                <p>Outcome Label: No </p>
                <p>Filter: All Conditions Are Met (AND) </p>
                <p>Resource: varResourceId, Operator: is Null, Value: True </p>
                <p>Note: You can add more fields that were fetched throughout the flow, check if
                  they’re not Empty or Null, and determine if the resource absence should be
                  created. </p>
                <p style="margin-bottom:0;">Default Outcome Label: Yes (Default)</p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">No &gt; Get Records</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Get Record Type </p>
                <p>Salesforce Object: Record Type </p>
                <p>Filter: All Conditions Are Met (AND) </p>
                <p style="margin-bottom:0;">Field: Record Type Name, Operator: Equals, Value: Non_Availability </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Create Records</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Create Resource Absence </p>
                <p>How to set record field values: Manually </p>
                <p>Salesforce Object: Resource Absence </p>
                <p>1. Field: End Time, Value: LocalDateTimeEndOfDayFormula </p>
                <p>2. Field: Start Time, Value: TodayStartFormula </p>
                <p>3. Field: Record Type ID, Value: Record Type from Get Record Type &gt; Record Type
                  ID </p>
                <p>4. Field: Resource ID, Value: Service Resource from Get Service Resource ID &gt;
                  Resource ID </p>
                <p>5. Field: Approved, Value: True </p>
                <p style="margin-bottom:0;">6. Field: Type, Value: Medical </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Connect the No and Yes paths &gt; Get Records</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Get Service Appointment </p>
                <p>Salesforce Object: Service Appointment </p>
                <p>Filter: All Conditions Are Met (AND) </p>
                <p>1. Field: Scheduled Start, Operator: Greater Than or Equal, Value:
                  TodayStartFormula </p>
                <p>2. Field: Scheduled End, Operator: Less Than or Equal, Value: TodayEndFormula </p>
                <p>3. Field: Territory ID, Operator: Equals, Value: Service Territory from Get
                  Service Territory Primary Operating Hours &gt; Territory ID </p>
                <p>How Many Records to Store: All records </p>
                <p style="margin-bottom:0;">Choose fields and let Salesforce do the rest: Id is entered by default </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Loop</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Iterate Over Service Appointments for Today </p>
                <p>Collection Variable: Service Appointments from Get Service Appointments </p>
                <p style="margin-bottom:0;">Specify Direction for Iterating Over Collection: First item to last item </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">For Each &gt; Assignment</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Set List of Service Appointment IDs </p>
                <p style="margin-bottom:0;">Set Var Values: saIdsFromAssignedResource, Operator: Add, Value: Current Item
                  from Loop Iterate Over Service Appointments &gt; Service Appointment ID</p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">After Last &gt; Get Records</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Get Service Appointment from Assigned Resource </p>
                <p>Salesforce Object: Assigned Resource </p>
                <p>Filter: All Conditions Are Met (AND) </p>
                <p>1. Field: Service Appointment ID, Operator: In, Value:
                  saIdsFromAssignedResource </p>
                <p>2. Field: Service Resource ID , Operator: Equals, Value: Service Resource from
                  Get Service Resource ID &gt; Resource ID </p>
                <p>How Many Records to Store: All records </p>
                <p>How to Store Record Data: Choose fields and let Salesforce do the rest </p>
                <p>1. Field: Id </p>
                <p style="margin-bottom:0;">2. Field : ServiceAppointmentId </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">Loop</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Iterate Over Assigned Resource for Today </p>
                <p style="margin-bottom:0;">Collection Variable: Assigned Resources from Get Service Appointment from
                  Assigned Resource </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e379 ">For Each &gt; Assignment</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e382 ">
                <p>Label: Set List of Service Appointment IDs for Today </p>
                <p style="margin-bottom:0;">Variable: serviceResourceSAIds, Operator: Add, Value: Current Item from Loop
                  Iterate Over Assign Resource for Today &gt; Service Appointment ID </p>
              </td>

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

Your flow should look like this.

![Resource Absence flow](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_field_service-264-0-0-production-enus/3f7dceb9-dd70-454a-b49e-bbb4526a158d/support_field_service/images/agentforce_resource_absence_main_flow.png)

## Reschedule Service Appointments Flow

This flow attempts to reschedule the service resource’s service appointments one at a time.

Create an Autolaunched Flow with the following details.

### Variables

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
          <colgroup>
            <col style="width:25%">
            <col style="width:75%">
          </colgroup>
          <thead class="slds-text-title_caps ">
            <tr class="">
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d146176e993">API Name </th>
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d146176e996">Details</th>
            </tr>
          </thead>
          <tbody>
            <tr class="">
              <td data-label="API Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e993 ">saResults </td>

              <td data-label="Details" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e996 ">
                <p>Data Type: Text </p>
                <p style="margin-bottom:0;">Available for output </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="API Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e993 ">serviceAppointmentId </td>

              <td data-label="Details" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e996 ">
                <p>Data Type: Text </p>
                <p style="margin-bottom:0;">Available for input </p>
              </td>

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

### Elements

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
          <colgroup>
            <col style="width:25%">
            <col style="width:75%">
          </colgroup>
          <thead class="slds-text-title_caps ">
            <tr class="">
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d146176e1052">Flow Element </th>
              <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d146176e1055">Configuration</th>
            </tr>
          </thead>
          <tbody>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e1052 ">Get Records</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e1055 ">
                <p>Label: Get Scheduling Policy </p>
                <p>Salesforce Object: Scheduling Policy </p>
                <p>Filter: All Conditions Are Met (AND) </p>
                <p style="margin-bottom:0;">Field: Scheduling Policy Name, Operator: Equals, Value: Customer First </p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e1052 ">Subflow</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e1055 ">
                <p>Subflow: Field Service: Schedule Service Appointment </p>
                <p>Label: Reschedule Service Appointment </p>
                <p style="margin-bottom:0;">serviceAppointmentId: Included, Value: serviceAppointmentId</p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e1052 ">Decision</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e1055 ">
                <p>Label: Was Reschedule Successful? </p>
                <p>Outcome Label: No </p>
                <p>Default Outcome Label: Yes </p>
                <p>Filter: All Conditions Are Met (AND) </p>
                <p style="margin-bottom:0;">Resource: Outputs from Reschedule Service Appointment &gt; serviceAppointmentId,
                  Operator: Equals, Value: Blank Value (Empty String)</p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e1052 ">No &gt; Action</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e1055 ">
                <p>Action: Schedule Service Appointment (scheduleServiceAppointment) </p>
                <p>Label: Retry Reschedule </p>
                <p>Scheduling Policy ID: Scheduling Policy from Get Scheduling Policy &gt; Record ID </p>
                <p style="margin-bottom:0;">Service Appointment ID: serviceAppointmentId</p>
              </td>

            </tr>
            <tr class="">
              <td data-label="Flow Element" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e1052 ">Connect the No and Yes paths &gt; Assignment</td>

              <td data-label="Configuration" class="slds-cell-wrap" style="vertical-align:top;" headers="d146176e1055 ">
                <p>Label: Assign Service Appointment ID</p>
                <p style="margin-bottom:0;">Variable: saResults, Operator: Equals, Value: Outputs from Reschedule Service
                  Appointment &gt; serviceAppointmentId</p>
              </td>

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

Your flow should look like this.

![Reschedule Appointments flow](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_field_service-264-0-0-production-enus/3f7dceb9-dd70-454a-b49e-bbb4526a158d/support_field_service/images/agentforce_resource_absence_reschedule_flow.png)