Exercise - Send an email when a tweet is posted
You can create a flow that automatically performs one or more actions after it's triggered by an event. For example, the flow can notify you by email when someone posts a tweet that includes a keyword that you specify. In this example, posting a tweet is the event (also known as a trigger), and sending an email notification is the action. In this unit, you'll learn how to create this example flow.
- An account on flow.microsoft.com
- A Twitter account
- Microsoft Office 365
Specify an event to start the flow
First, you must select the trigger (event) that starts the flow.
Sign in to Power Automate by using your organizational account.
Select My flows.
Select New, and then select Automated--from blank.
Under Choose your flow's trigger, enter twitter, select the Twitter - When a new tweet is posted trigger and select Create.
If you haven't already connected your Twitter account to Power Automate, select Sign in to Twitter, and then enter your credentials.
In the Search text box, enter the keyword to find.
Specify an action
Select New step, and in the search field, enter send email, and then select the Office 365 Outlook - Send an email action.
If you're prompted to sign in, select the sign-in button, and then enter your credentials.
In the To field, enter or paste your email address, and then select your name in the list of contacts that appears.
In the Subject field, enter New tweet from: followed by a space.
In the list of dynamic content, select the Tweeted by token to add a placeholder for it.
Select the Body field, and then, in the list of dynamic content, select the Tweet text token to add a placeholder for it.
Optional: Add more tokens, other content, or both to the body of the email.
Select Save to save the flow.
Post a tweet that includes the keyword that you specified, or wait for someone else to post such a tweet.
Within a minute after the tweet is posted, an email message will notify you of the new tweet.