---
schema_version: "1"
id: 3895d29dcaee8859ec2ec323232b9b1626164aa76b32c932c908b1405916ee58
title: Set up Automatic Time Sheet Entry Creation
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/aslm_tmcht_set_up_automatic_timesheet_entry_creation.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.aslm_tmcht_set_up_automatic_timesheet_entry_creation.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 5f492bc7c3b3c3924ac06abc2ad5b3a6c0a38243c1ff9ceaa548c5c113a59675
description: Set up the flows and actions that create time sheet entries on the start and end of a service appointment, based on technician geolocation.
products:
  - Industry Solutions
  - Cross Cloud
release: "264"
---
# Set up Automatic Time Sheet Entry Creation

Set up the flows and actions that create time sheet entries on the start and end of a service appointment, based on technician geolocation.

### 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: All editions of Field Service Plus for Energy and Utilities, and all editions of Asset Service Lifecycle Management</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="d37158e60">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d37158e60 ">To access flow templates</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d37158e60 ">Labor Cost Optimization Admin</td>

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

Use flow templates available in Timesheets and Labor Cost Optimization to automatically create time sheet entry items. Clone the flow templates, activate them, and place them as actions in the service appointment object.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:25%">
          <col style="width:12.5%">
          <col style="width:62.5%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d37158e96">Flow Template Name</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d37158e99">Usage</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d37158e102">Flow Template Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Flow Template Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d37158e96 ">Create Time Sheet Entries on Appointment Start</td>

            <td data-label="Usage" class="slds-cell-wrap" style="vertical-align:top;" headers="d37158e99 ">Mobile</td>

            <td data-label="Flow Template Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d37158e102 ">
              <p>Creates or updates a time sheet entry and associates it with a work order or work
                order line item when a field service technician reaches the appointment location.</p>
              <p style="margin-bottom:0;">Automatically wraps up (updates the end time of) a Time Sheet Entry of Category <strong>Drive Time</strong> and
                creates the next Time Sheet Entry of Category <strong>Work Time</strong> when a technician enters a service appointment location.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Flow Template Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d37158e96 ">Create Time Sheet Entries on Appointment End</td>

            <td data-label="Usage" class="slds-cell-wrap" style="vertical-align:top;" headers="d37158e99 ">Mobile</td>

            <td data-label="Flow Template Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d37158e102 ">
              <p>Updates the current time sheet entry and creates a time sheet entry when the field service
                resource completes the appointment.</p>
              <p style="margin-bottom:0;">Automatically wraps up (updates the end time of) a Time Sheet Entry of Category <strong>Work Time</strong> and
                creates the next Time Sheet Entry of Category <strong>Drive Time</strong> when a technician enters a service appointment location.
              </p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Flow Template Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d37158e96 ">Create Action Records Based on Geolocation</td>

            <td data-label="Usage" class="slds-cell-wrap" style="vertical-align:top;" headers="d37158e99 ">Mobile</td>

            <td data-label="Flow Template Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d37158e102 ">
              <p>Creates an action record using geolocation when a field service technician enters or
                exits from a service appointment location.</p>
              <p style="margin-bottom:0;">For every service appointment, creates two geolocation-based actions for entering and exiting
                a service appointment location which trigger the corresponding appointment start and appointment end flows.
              </p>
            </td>

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

1. Clone the Flow Builder templates available with Timesheets and Labor Cost Optimization.
    
    You must create at least one flow with each of the templates listed earlier.
    
    1. From Setup, find and select **Flows** under Process Automation.
    2. Click the flow template that you want to clone. For example, click **Create Action Records Based on Geolocation**.
    3. Click **Save As** on the header of the flow builder and enter a flow label and a flow API name.
    4. Save your changes.
2. Customize the flow and activate them.
    
    For example, in the Create Time Sheet Entries on Appointment End flow, you can set the default interval time for a technician between completing a work order and starting the drive time for the next work order.
3. Place the Create Time Sheet Entries on Appointment Start and the Create Time Sheet Entries on Appointment End flows as actions in the service appointment object.
    1. From the object management settings for the object you want to add actions to, go to Buttons, Links, and Actions. For example, go to the object management settings for Service Appointment.
    2. Click **New Action**.
    3. In Action Type, select **Flow**.
    4. Select the flow that you want to add as an action. For example, select **Create Time Sheet Entries on Appointment Start**.
    5. Enter a label.
    6. Enter a name that matches the value of the ActionDataForEntry constant in the Create Action Records Based on Geolocation flow.
        
        ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-asset_service_lifecycle_mgmt-264-0-0-production-enus/645b17dc-6eea-4fac-9d5c-016dea098887/images/icon_note.png)
        
        Note The name of this action must match the value of the ActionDataForEntry constant in the Create Action Records Based on Geolocation flow. For the Create Time Sheet Entries on the Appointment Start flow, enter Create\_TSE\_SA\_Entry. For the Create Time Sheet Entries on the Service Appointment End flow, enter Create\_TSE\_SA\_Exit.
    7. Enter the details of the new action and save your changes.