Edit

Share via


Enable push notifications

In the Dynamics 365 Field Service mobile app, push notifications send updates to technicians through their mobile phones or tablets. Push notifications use Microsoft Power Automate and support many scenarios. For example, to notify about a newly assigned booking or as a reminder to capture and enter important data.

There are two ways to enable push notifications for your organization.

Prerequisites

Turn on push notifications included with Field Service

Field Service includes a template to enable push notifications for new bookings.

Configure the following cloud flow to send frontline workers a push notification on their mobile device when they're booked for a work order.

  1. Sign in to Power Apps and select the environment with your Field Service installation.

  2. In the left pane, select Solutions. From the list of solutions, select the Default Solution.

  3. Select New > More > Connection Reference.

  4. Create a connection reference called Field Service Push Notification Connection. For more information, go to Manually add a connection reference.

    • Display name: Field Service Push Notification Connection
    • Connector: Power Apps Notification V2
    • Connection: New connection

    Tip

    The Name field automatically fills in when you enter the Display name.

  5. Go back to the New Connection Reference pane, select Refresh, and select the new connection.

  6. Select Create.

    Edit pane for Field Service Push Notification connection reference.

  7. Follow steps 3 - 6 and create a connection reference called Dataverse Connection Reference.

    • Display name: Dataverse Connection Reference
    • Connector: Microsoft Dataverse
    • Connection: New connection
  8. Go back to Solutions and edit the solution with the name msdyn_FieldService_patch_update.

  9. Open the details of the cloud flow called Field Service – Notify user about booking (UCI app).

  10. Select the Save as option to create a copy of the cloud flow and add it to an unmanaged solution.

  11. In the unmanaged solution, select the Turn On option for your new cloud flow.

  12. Open the details for the Field Service – Notify user about booking (UCI app) cloud flow. Make sure the Connection References section contains both connection references that you created.

Test push notifications

Schedule a work order to a frontline worker that has a user set up for the mobile app.

Within 60 seconds, you should receive a push notification from the Field Service mobile app.

Create a custom push notification

You can create push notification with custom triggers to match your business scenarios. The following steps outline an example flow that sends a push notification to users of the mobile application when they get a new booking assigned. The notification includes the work order associated to the booking.

  1. Sign in to Power Automate and select Create. Power Automate supports hundreds of connectors that can be used to trigger and provide data to the push notifications. You can use any of these triggers to send targeted push notifications to the desired set of users.

  2. Select Automated cloud flow, enter a name, and choose the Microsoft Dataverse connector. For this example, we use the Dataverse connector that triggers When a row is created, updated, or deleted.

  3. Choose the trigger options. In this example, select:

    • Change type: Added
    • Table name: Bookable Resource Bookings
    • Scope: Organization
  4. Add another step and choose the Get a row by ID option to get the associated resource value.

    • Table name: Bookable Resources
    • RowID: Resource (Value)
  5. Add a condition. We want to send notifications to users, rather than resources that represent equipment, pools, and contractors. In this example, select: Resource Type is equal to User (Type).

  6. When the condition matches, we need the associated user values. Technicians sign into the mobile app with their Dynamics 365 user credentials. This step ensures that push notifications go to the appropriate users. In the If yes box, add a Get a row by ID option. Select:

    • Table name: Users
    • RowID: User (Value)
  7. To include work order information in the push notification message, configure the flow to get work orders. Add another Get a row by ID option. Select:

    • Table name: Work Orders
    • RowID: Work Order (Value)

    Custom flow in Power Automate that triggers a push notification in the Field Service mobile app.

  8. With all information available and the flow logic defined, add the Send push notification V2 action. Select:

    • Mobile app: Field Service
    • Your app: Field Service Mobile

    To provide a custom message:

    • Recipients Item: Primary email
    • Message: The notification message

    To redirect the technician to the new booking and work order form:

    • Open app: Yes
    • Entity: Bookable Resource Booking
    • Form: Form – Booking and Work Order
    • Record ID: Bookable Resource Booking
  9. Select Save. The push notification shows on the technician's mobile phone. They don't need to have the app open or use their device to receive push notifications.

    A mobile phone push notification from Field Service.

Note

When in mobile offline mode, the device receives the push notification as soon as it has connectivity. Opening the push notification results in a sync to download the record if it's not available on the device. If the sync settings are set to sync on Wi-Fi only, the app syncs the data, even if not on Wi-Fi, when a cellular connection is available.