Skip to main content
Build the future with Agentforce at TDX in San Francisco or on Salesforce+ on March 5–6. Register now.

Customize User Settings

Learning Objectives

After completing this unit, you’ll be able to:

  • Adjust the calendar view and shift appointments.
  • Customize a mobile worker’s push notifications.
  • Add a quick action to a mobile worker’s app.
  • Set up a flow to speed a mobile worker through a process.

Shift Appointments to Today

Your new Trailhead org contains sample appointments for September 22 to 24, 2021. To use that data in this unit, you must move the appointments forward to today.

First, display all the appointments in the Gantt.

  1. From the App Launcher App launcher icon, find and select Field Service.
  2. Click the Field Service tab to display the Dispatcher Console.
  3. In the Gantt, use the calendar to select September 22, 2021.
  4. In the Gantt, select 3 Days.
Note

If you’re not viewing all 3 days in the Gantt, you won’t move all of the appointments in the next step, so do double check.

Gantt showing 3 days of data: September 22, September 23, and September 24, 2021

Now, select all the appointments in the appointment list and move them forward.

  1. In the appointment list, make sure that Match Gantt Dates is selected.
  2. From the dropdown next to APPOINTMENTS, choose ALL to select all appointments. (You may have to deselect and select again.)
  3. From the dropdown list next to the word Dispatch, choose Shift Appointments.
    Appointment list showing all the appointments selected and Shift Appointments highlighted in the dropdown menu.
  4. On the Gantt, click Today to see the appointments moved to their new dates. The appointments have moved to yesterday, today (your current date), and tomorrow.

Customize Push Notifications

One way that Field Service communicates with mobile workers is by sending messages called push notifications to their mobile devices. For example, a mobile worker receives a push notification in their app telling them their schedule has changed. Then the worker can check out their new schedule to see their new tasks.

Maria’s team wants to use a push notification to inform mobile workers when a service appointment’s status changes to Dispatched. Then workers know that they have a new job to do and when to get started.

Maria enables push notifications.

  1. To use push notifications, make sure you downloaded the Field Service Connected app from a previous unit. Maria has already done that.
  2. From Setup, enter Field Service Settings in the Quick Find box, then select Field Service Settings.
  3. Under Notifications, verify that Enable notifications is selected, and save your changes.
  4. Under Sharing, select all three sharing settings. (Your screen may look somewhat different from this image.)
    Field Service Setting pane with Enable notifications and Sharing settings selected.
  5. Save your changes.

Next, Maria sets up mobile push notifications for the Dispatched status.

  1. From Setup, enter Field Service Mobile Settings in the Quick Find box, then select Field Service Mobile Settings.
  2. In the Field Service Mobile Settings pane, click Field Service Mobile Settings.
  3. From the dropdown, select Show Details.
  4. Scroll down to Notification Settings and edit to select Send appointment notifications on dispatch and verify that Send appointment notifications on assignment is also selected.
  5. Save your changes.

With these settings in place, first, a service appointment with a work order or work order line item parent is dispatched to mobile workers. Then a notification appears in the Field Service mobile app on the workers’ mobile phones. They also see a notification if an assignment is changed or removed. Even if they change the service appointment or are removed from the service appointment after it’s dispatched, they still receive the notification.

Add a Quick Action

Maria has received a request to add a quick action to the mobile app that gives mobile workers a speedy way to update a service record. Because this is something they do often, making it easier saves a lot of time.

First, she checks to see if the action already exists on the Service Appointment object.

  1. Click The setup icon, then select Setup.
  2. Click Object Manager and click Service Appointment.
  3. Click Buttons, Links, and Actions.
  4. Check to see if the Update Record action exists. If not, create it. Maria looks through the list of actions and discovers an action called Update Record that does just what she needs.

If you haven’t created an Update Record action, click New Action, fill in the New Action fields, and save your work.

New action to update records for field workers.

Maria adds the action to the Service Appointment page layout so it shows up on her team’s mobile devices.

  1. Click The setup icon, then select Setup.
  2. Click Object Manager and click Service Appointment.
  3. Click Page Layouts.
  4. Click the page layout. Maria clicks FSL Service Appointment Layout.
  5. From the layout editor, select Quick Actions.
  6. Drag the Update Record action into the Quick Actions in the Salesforce Mobile and Lightning Experience Actions section. (If you're following along in a playground, you may not be able to do this, as the Service Appointment may be managed.)
  7. Save your changes.

The action appears in the app and on the full Salesforce site for profiles using the Ursa Major Service Appointment Layout for their page layout.

Create a Flow

Ursa Major requires that its mobile workers perform new safety tasks every time they arrive at a work site. To ensure that each task gets completed, the team asks Maria to create a checklist. Maria decides to create the checklist as a flow and allow workers to check off each task as they finish it.

First, Maria creates the flow.

  1. Click The setup icon, then select Setup.
  2. In the Quick Find box, enter flow. Click Flows.
  3. Click New Flow.
  4. Make sure Start from Scratch is selected, then click Next.
  5. In the All Flow Types list, select Field Service Mobile Flow.
    Flow Builder with All + Templates and Field Service Mobile Flow selected.
  6. Click Create.

Next, Maria adds items to the new flow.

  1. On the flow canvas, on the path after the Start element, click Add Element. Select Screen.
  2. For the label, enter Safety Checklist.
  3. Click API Name and Safety_Checklist is filled in.
  4. Add items to the screen.
    1. Drag Checkbox from the list to the screen.
      Dragging the checkbox to the Flow Label area.
    2. For the checkbox label, enter Are you wearing a mask?
    3. Drag a second Checkbox under the first one.
    4. For the label, enter Have you sanitized your hands?
    5. Drag a third Checkbox under the second.
    6. For the label, enter Have you sanitized your tools?Flow containing the checkboxes.
    7. Click Done.
  1. Click Save to save the flow.
  2. For the Flow Label, enter Safety Checklist Flow.
  3. Click Flow API Name to see Safety_Checklist_Flow filled in automatically.
  4. Click Save.
  5. Click Activate.

Finally, Maria connects the flow to her team’s mobile app.

  1. Click The setup icon, then select Setup.
  2. In the Quick Find box, enter field service mobile and click Field Service Mobile Settings.
  3. From the dropdown, select Show Details.
  4. Scroll down to App Extensions and click New.
  5. Fill out the values.
    • For Type: Flow
    • Launch value: Name of the Flow. Maria enters Safety_Checklist_Flow
    • Label: Safety Checklist
    • Name: Safety_Checklist
    • Scoped to Object Types: Object API Name. Maria enters ServiceAppointment
    • Save your changes.

The flow is now part of the team’s mobile app. When James Clifton goes to his next appointment, he clicks a service appointment. He clicks the action menu to find and complete the safety checklist before he starts the job.

Safety checklist on James’s phone displaying the three checklist items

Note

If you don't see the new flow, be sure to clear the metadata cache for your mobile device.

Maria customized the mobile app for Ursa Major’s team. She changed the push notifications, added a quick action to make it easier to set an appointment’s status, and added a safety checklist flow.

Resources

Condividi il tuo feedback su Trailhead dalla Guida di Salesforce.

Conoscere la tua esperienza su Trailhead è importante per noi. Ora puoi accedere al modulo per l'invio di feedback in qualsiasi momento dal sito della Guida di Salesforce.

Scopri di più Continua a condividere il tuo feedback