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.
  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.
    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. Click Edit.
  4. Scroll down to Customization and select Send appointment notifications on dispatch and verify that Send appointment notifications on assignment is also selected.
    Field Service Mobile Settings pane in edit mode with Send appointment notifications on dispatch 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.
Note

If you haven't created it, you won't have the Update Record action in your org. Read through the instructions to see how Maria did it.

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.
  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. Click the All + Templates tab.
  5. In the list of templates, click Field Service Mobile Flow.
  6. Make sure Field Service Mobile Flow is selected on the right.
    Flow Builder with All + Templates and Field Service Mobile Flow selected.
  7. Click Next.
  8. Click Freeform.

Next, Maria adds items to the new flow.

  1. Drag Screen from the palette to the flow.
  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.
  5. In the Flow Builder, connect the Screen element to the new flow.
    1. Click the circle at the bottom of the Start element and drag the line to the circle at the bottom of the Screen element.
  6. Save your changes.
  7. For the flow label, enter Safety Checklist Flow.
  8. Click Flow API Name to see Safety_Checklist_Flow filled out automatically.
  9. Save your changes.
  10. Click Activate.
Note

If it's not set up already, make sure that mobile users can run flows by following the steps in Enable User Access For Your Flow.

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. Click Field Service Mobile Settings.
    The Field Service Mobile Settings setting highlighted.
  4. Hover over App Extensions and click Add.
  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

無料で学習を続けましょう!
続けるにはアカウントにサインアップしてください。
サインアップすると次のような機能が利用できるようになります。
  • 各自のキャリア目標に合わせてパーソナライズされたおすすめが表示される
  • ハンズオン Challenge やテストでスキルを練習できる
  • 進捗状況を追跡して上司と共有できる
  • メンターやキャリアチャンスと繋がることができる