Thanksgiving Week Special – Get 50% OFF on FileTranz

Claim Your Offer

Field Service Technician Geolocation Tracking

Field Service Geolocation Tracking monitors technician locations in real time using Salesforce Field Service Mobile, improving dispatching & service efficiency

By Pradeepa Singaravelan
Associate Salesforce Developer

Field Service Technician Geolocation Tracking

 

Geolocation tracking of Field Service Resources (technicians) would enable organizations to track both real-time and historical locations of their Field Technicians. This would allow organizations to enhance their scheduling, dispatching, and other related processes.

Geolocation tracking would also help organizations identify instances where the technicians do not change the status of the appointment to "En route." In this situation, the organization can use the current location of the technician along with the distance between the technician's location and the customer's location to create a suitable reminder.

Salesforce Field Service offers built-in mechanisms to collect and store the location information of Field Technicians using the Field Service Mobile App.

In one of my projects, I had to track the geolocation of Field Service technicians to be used for certain business processes. However, while trying to implement the above-mentioned feature, I found it very difficult to locate a reliable guide for implementing geolocation tracking of Field Technicians.

For that reason, I have chosen to share all my learning, configuration, and implementation experience in this blog. The purpose of this blog is to provide an easy-to-follow guide on how to configure and use Field Service Technician Geolocation Tracking in Salesforce, from configuration to the use of the geolocation data in your business processes.

Geofencing in Salesforce Field Service

Geofencing in Salesforce Field Service (FSL) is a geographical capability that forms a virtual fence for a specified location, for example, the customer's Service Appointment Location. The Salesforce platform uses the technician's location via the Field Service Mobile App to know if the technician has moved inside or out of the geographical boundary.

As an illustration, a 100-meter geofence may be created around the customer's location. If the technician moves into the location, the Salesforce platform can take some specified action, like Platform Alert, Quick Action, or View Record. Likewise, an action can be performed when the technician moves out of the geofence.

Enable Geolocation Tracking

Enabling Geolocation Tracking allows Salesforce Field Service to capture the technician's current geographical location, including their latitude and longitude, through the Field Service Mobile App. The location data is collected from the technician's mobile device using its GPS/location services and is periodically updated based on the configured geolocation frequency and accuracy settings.

The captured location information is stored against the Service Resource record, where the technician's latest location can be accessed through the Last Known Latitude, Last Known Longitude, and Last Known Location Date fields. This location data can be used to monitor technician movement and analyze their previous locations.

Follow the below steps to enable tracking of service resource location:

  • Go to Setup.

  • Type “Field Service Mobile Settings” in the Quick find box.

  • Choose the active mobile settings configuration.

  • Choose “Show Details.”

  • In the Additional Settings section, check:

  • Collect Service Resource Geolocation History: Yes

    • This helps the Salesforce platform capture the geolocation data of the technician. The location data can be monitored as well as analyzed for previous locations.

    • Example:

      • 10:00 → Location update

      • 10:02 → Location update

      • 10:04 → Location update

  • Geolocation Update Frequency in Minutes: 2

    • This helps in deciding how often the system tries to update the location of the technician while the app is active in the foreground.

    • For instance, if the value is 2 minutes, then the location gets updated after every 2 minutes.

  • Geolocation Accuracy: Medium (100 meters)

    • Geolocation Accuracy is the setting that controls how accurate the location of the technician will be captured when the Field Service Mobile app is running in the foreground.

    • The following are three levels of geolocation accuracy supported by Salesforce:

      • Fine – Around 10 meters 
        This level gives the most accurate location of the technician. This option is recommended in case there is a need for highly precise location detection.

      • Medium – Around 100 meters 
        This option offers a tradeoff between location accuracy and battery usage. It can be used when there is a need to check if the technician is at some specified distance from the customer.

      • Coarse – Around 1 kilometer 
        This gives a lower level of location accuracy but helps to save the battery.

  • Geolocation Update Frequency in Minutes (Background Mode): 2

    • This sets the frequency at which Salesforce tries to update the technician’s location as the Field Service Mobile App is working in the background.

    • For instance, in case the value is set to 2 minutes, the application will try to get the location at the background interval.

  • Geolocation Accuracy (Background Mode): Medium.

    • The Geolocation Accuracy (Background Mode) option governs the precision of the location tracking of the technician in relation to the mobile app's operation in the background mode. 
      These are the three accuracy levels that are available in background mode:

      • Medium – About 100 meters 
        This gives the right amount of balance between location precision and battery drain. This could prove helpful if the location of the technician needs to be determined while the Field Service Mobile App runs in the background.

      • Coarse – About 1 kilometer 
        This gives low location precision while saving on battery life. This could prove helpful if there is no need for exact technician location information.

      • Very Coarse – About 3 kilometers 
        This gives the least location precision. This could prove helpful if the approximate location of the technician is good enough.

    • Click “Save.”

The system will be able to track the Service Resource geolocation and log the updated information in the LastKnownLatitude and LastKnownLongitude fields on the service resource record in the field.

Enable Field History Tracking for the following fields:

  • Last Known Location

  • Last Known Location Date

Enable Address Details for Service Territory Member

Prior to enabling the GPS-Based Service Appointment Automation, it is imperative that the Service Territory Member record contain the necessary location information, which will be used to determine the technician's assigned location and enable location-based features.

For instance, the following location details are supposed to be available within the Service Territory Member:

  • Service Resource: Technician assigned to the territory.

  • Service Territory: Territory to which the technician is assigned.

  • Operating Hours: Working hours relevant to the technician.

  • After the setup of the Service Territory Member, Salesforce will be able to utilize the technician's assigned location and territory information to enable location-based features such as Automatic Status Change and Geolocation-Based Actions.

Why is this important?

The Service Territory Member defines the relationship between the Service Resource and the Service Territory. It is crucial in defining the availability of the technician when doing appointments in a particular place.

In case of improper configuration of the Service Territory Member, some features will be affected, namely:

  • Geofencing

  • Automatic Status Change

  • Geolocation-Based Actions

Service Territory Member Configuration Process

Step 1: Log into the App Launcher from the navigation tab on Salesforce. Find Service Territory Member from the App Launcher.

Step 2: Click on the Service Territory Members Tab. Choose the required Service Territory Member.

Step 3: Check the Service Resource, Service Territory, and Operating Hours. Ensure that the proper Service Resource is selected for the Service Territory Member, the right Service Territory has been selected, and the appropriate Operating Hours have been set.

Step 4: Confirm that the proper location details have been set for the associated Service Resource.

Step 5: Confirm that the Service Territory Member is active and the technician is available to work in the specified territory.

Step 6: Save if any modifications are required.

The real-time location of the technician, with the help of GPS, is determined by using the Field Service Mobile App. It is the Service Territory Member who determines the allocation of the technician to a Service Territory and not its source.

Geolocation-Based Service Appointment Automation

GPS-Based Service Appointment Automation involves the use of the technician's geolocation data for automating tasks associated with a Service Appointment. Salesforce is able to identify the time at which the technician has arrived at the location of the Service Appointment through the comparison of the geolocations of the technician and the customer.

Salesforce offers the following two types of location-based automation:

  • Automatic Status Changes

  • Geolocation-Based Actions

Automatic Status Changes

Automated Status Changes automatically change appointment statuses according to the current GPS location, the status of travel, and the timing of the appointments for the technician.

How it works?

The Salesforce system captures the location of the technician using the Field Service Mobile App.

As soon as the technician begins the journey towards the service appointment, the appointment status can be automatically changed to the following:

  • En Route

  • On Site

  • Completed

According to the mode of notification set.

Supported Modes
  • Manual: The technician must confirm or cancel the status change manually.

  • Timed: The technician receives a notification with a timer. If no action is taken, the status changes automatically after the timer ends.

  • Automatic: The appointment status changes automatically, and the technician is informed after the update occurs.

Trigger Condition

Automatic Status Change is triggered at three points based on the mobile worker’s location and appointment status:

  1. Traveling to the Appointment 
    • For the first appointment of the day, the status changes to En Route when: 

    • The mobile worker has traveled 80% of the distance to the appointment. 

    • The mobile worker is within 1 hour before the scheduled start time. 

  2. Arriving at the Appointment 

    • When the mobile worker enters the configured radius of the appointment location, a confirmation pop-up is displayed. 

    • After confirmation, the appointment status changes to On Site. 

  3. Completing the Appointment 

    • When the mobile worker leaves the configured radius of the current appointment, a confirmation pop-up is displayed to complete the appointment. 

    • After confirmation, the current appointment is marked Completed. 

    • If another appointment is scheduled, its status automatically changes to En Route. 

    • For this status change, the system does not check the time, distance, or GPS location of the next appointment. 

Before You Begin
  • Ensure that mobile workers have set the Location Permission on their devices to "Always" to allow status changes based on the GPS.

  • The Automatic Status Change allows the use of the default list view only.

  • To see service appointments of a particular mobile worker in the default list view, set the Owner filter to My Service Appointments.

Flow Diagram

 

Automatic Status Change - Creating Steps

The Automatic Status Change feature can be configured from the Field Service Mobile Settings. It allows Salesforce to automatically update the Service Appointment status based on the technician's location, configured radius, appointment timing, and travel status.

Configuration Steps:

Step 1: Navigate to Setup. In the Quick Find box, search for Field Service Mobile Settings.

 

Step 2: Select the active Field Service Mobile Settings configuration.

Step 3: Click "Show Details."

 

Step 4: Under Additional Settings, enable Collect Service Resource Geolocation History.

Step 5: Scroll down to the Automatic Status Change section.

Step 6: Configure Status Change Mode:

  • Choose "Automatic" if you want Salesforce to automatically change the status of the Service Appointment based on the defined conditions.

Step 7: Configure Radius (meters):

  • Define the radius within which the technician's location will be considered as close to the Service Appointment.

  • Example: 100 meters.

Step 8: Enable Time from Service Appointment:

  • Check the box if the automatic status change should be performed at a certain time before the Service Appointment.

  • Example: Check the box.

Step 9: Configure Time from Service Appointment (minutes)

  • Define the required time window.

  • Example: 60 minutes.

  • It means that the automatic status change will be evaluated within 60 minutes prior to the Service Appointment.

Step 10: Configure Cancellation Period (seconds):

  • Define the period of time during which the technician can cancel the automatic status change.

  • Example: 10 seconds.

Step 11: Configure Travel Status:

  • Define the status of the service appointment, indicating that the technician travels to the Service Appointment.

  • Example: En Route.

Step 12: Configure On-Site Status:

  • Define the status that should be assigned once the technician arrives within the configured radius around the Service Appointment.

  • Example: In Progress.

Step 13: Configure Completed Status:

  • Define the status that indicates the completion of the Service Appointment.

  • Example: Completed.

Step 14: Review the configuration and click Save.

 

After saving the settings, Salesforce will apply the configured Automatic Status Change rules to Service Appointments.

When the technician travels toward the appointment, Salesforce uses the technician's GPS location, configured radius, and appointment time window to determine when the status should change.

Conclusion

I hope this guide helps you clearly understand Field Service Geolocation Tracking and its practical implementation in Salesforce. In this blog, we covered the key steps for enabling geolocation tracking, configuring geofencing, and setting up Automatic Status Changes based on the technician's location.

In the next blog, we will explore Geolocation-Based Actions and how they can be used to trigger actions based on a technician's location or distance from a Service Appointment.

We will also cover some additional important concepts and practical use cases related to Field Service Geolocation Tracking. Stay tuned for our upcoming blogs.


free-consultation