Exercise - Create a Power Automate button that sends an email with your location

Completed

Are you a field service analyst who is delayed for the next appointment due to traffic? Or your current appointment has taken longer than expected and will be delayed for your next?

Don't you wish there was an easier way to let your manager know your current location so that your next appointment can be handed off to someone else?

This unit describes how to build a flow that is triggered by a button that will send an email with your current location to your manager. The flow will be built entirely from the Power Automate app on your smart phone.

  1. In the Microsoft Power Automate app, select the Flows icon that is available in the lower portion of the app. Select the + icon on the upper right of the app.

  2. A menu option will slide upward from the lower part of the app. Select the Create from blank option.

  3. In the Connectors option, select Flow button for mobile. If you don't see the option, then search for it in Search all connectors and triggers and then select it when you've found it.

  4. In the Manually trigger a flow trigger, select +, Add an input, and then Text. Select Input, delete Input, and then enter Reason. Select Done in the upper right of the page.

  5. Select + and then New step.

  6. Select Add an action.

  7. Search for Time. Select Date Time and then select Date Time Convert time zone.

  8. Select Base time and then select the Timestamp option from Manually trigger a flow and then select Done.

    Screenshot of Base time options to manually trigger a flow with the Timestamp option and the Done button highlighted.

  9. For both Source time zone and Destination time zone, select the same time zone that works for your geographic location. This example uses the (UTC-05:00) Eastern Time (US & Canada) option. After you have selected the time zone, select Done on the upper right of the screen.

  10. For Format String, select General date/time pattern (short time) - 6/15/2009 1:45 PM (g).

  11. Select + New step.

  12. In the Connectors option, select Office 365 Users. If you don't see the selection, then search for it in Search all connectors and triggers and then select it when you've found it.

  13. Select Office 365 Users Get Manager (V2).

  14. Select User email from Manually trigger a flow and then select Done.

    Screenshot of User (U P N) options to manually trigger a flow with the User email option and the Done button highlighted.

  15. Select + New step.

  16. Select Add an action.

  17. In the Connectors option, select Office 365 Outlook. If you don't see the selection, search for it in Search all connectors and triggers and then select it when you've found it.

  18. Select Office 365 Outlook Send an email (V2).

  19. Select To. In the Get manager (V2) option, select See more, select Mail, and then select Done.

  20. Select Subject, enter Arrived Onsite, and then select Done.

  21. Select Body and then enter the following text:

    Hi

  22. Then, next to Get Manager (V2), select See more. Select Display Name and then Done.

    Screenshot of Body with a list of dynamic content from Get manager with the Display Name option and the Done button highlighted.

  23. Select Body again and then enter the following text:

    I have arrived at the location.
    
    The time is
    

    Screenshot of Hi Display Name (dynamic content).

  24. Next to Convert time zone, select See more, select Converted time, and then select Done.

    Screenshot of the Body with text "Hi Display Name (dynamic content). The time is Converted time (dynamic)" with Converted time and Done highlighted.

  25. Select Body again and then enter the following text:

    Screenshot of The time is Converted time (dynamic content).

    My current location is:

  26. Select Manually trigger a flow, then See more, and Full address. Select Done.

    Screenshot of the Body with text added "My current location is: Full address (dynamic content)" with Full address and Done highlighted.

  27. Give your flow a name such as Send current location to Manager and then select Create on the upper right of the screen.

    Screenshot of Send current location To Manager flow with Convert time zone, Get manager, and Send an email steps..

  28. In the next screen, select Done.

  29. On the lower horizontal menu, select Buttons and then select your new Send current location to Manager option.

  30. Your manager will receive an email.

    Screenshot of Send an email that ran 0 seconds ago with inputs To: shane, Subject: Arrived Onsite, and Body: Hi Shane. The time is...