Use trigger tokens

Completed

Trigger tokens are data points that are known and available to the device on which the button flow is running. These tokens are dependent on factors such as time and the geographic location of the device at a given moment.

When you run a flow from a virtual button on a smart phone, the date, time, and the current address where the phone is located are automatically available for use. You can use these trigger tokens to build useful flows that minimize repetitive tasks. Such as providing your location to someone or tracking how much time you spent on a particular job or service call.

The following list describes the button trigger tokens that are available for you to use when creating your button flows.

Parameter Description
City The city in which the device that's running the flow is located.
Country/Region The country/region in which the device that's running the flow is located.
Full address The full address where the device that's running the flow is located.
Latitude The latitude in which the device that's running the flow is located.
Longitude The longitude in which the device that's running the flow is located.
Postal Code The postal code in which the device that's running the flow is located.
State The state in which the device that's running the flow is located.
Street The street on which the device that's running the flow is located.
Timestamp The time in the area where the device that's running the flow is located.
Date The date in the area where the device that's running the flow is located.
Username The username of the person who is signed in to the device that's running the flow.
User email The email address of the person who is signed in to the device that's running the flow.

Trigger tokens provide you with rich functionality to add to your flow when you create a button. Consider a scenario where you want to send a notification email to let your manager know that you'll be late to work.

The prerequisites for this example are a Microsoft account with access to Microsoft Power Automate.

The following steps can help you create a Microsoft Power Automate mobile app for your Android or IOS smart phone.

  1. In your Microsoft Power Automate app, select the plus icon (+) in the bottom right.

  2. Select the Build your own option.

  3. In the Connectors field, select the Flow button for mobile option. If you don't see the option, then search for it by using Search all connectors and triggers and then select it.

  4. In the Manually trigger a flow trigger, select + Add an input. Select Text by selecting Input, deleting Input, and then entering Reason. Select Done.

  5. Select + New step.

  6. In the Connectors field, select the Office 365 Users option. If you don't see the option, then search for it by using Search all connectors and triggers and then select it.

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

  8. Enter your email address in the User (UPN) field.

  9. Select + New step.

  10. In the Connectors field, select the Office 365 Outlook option. If you don't see the option, then search for it by using Search all connectors and triggers and then select it.

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

  12. Select the To field. Select Dynamic Content in the bottom right hand side of the field. Scroll down and select the Mail parameter under the parameters for the Get Manager (V2) action. Select Done.

  13. In the Subject line, enter Will arrive late for work due to.

  14. Scroll down and find the Reason parameter.

    Screenshot of the reason parameter.

  15. Select Body, enter Hi, and then add a space. Then, scroll down the list of parameters and select Display Name.

  16. Select Return to take the cursor to the next line and then enter, I'll be arriving to work late due to

  17. Scroll down the list of parameters and find the Reason parameter again and select it. Then type My current location: and search for and add Full address from the dynamic content.

  18. Add Returns to add lines to enhance the readability of your email. You can even add your name or a custom message or image.

  19. In the top left hand, give your flow a name such as Late to work and then select the Save icon in the upper right of the page. Alternatively, there's a save button at the bottom of the flow.

    Your flow should resemble the following image.

    Screenshot of the first flow after it's completed.

  20. When you select the Instant Flows option that is available on the bottom of the app, you should see a row called Late to work. Select it, enter a Reason and then select Run Flow.

    Screenshot of the email the manager received