Join Gini von Courter for an in-depth discussion in this video Create a notification flow, part of Learning Microsoft Flow.
- [Gini] Social media emails are used to broadcast information or to repeat information, notification emails are there to let you know that something has occurred. For example, send me a notification when my boss emails me, send me a notification when a new file is added in SharePoint, or when someone drops something into OneDrive for Business, send me an email when there's a new list item in SharePoint, when a new opportunity is created in Yammer.
Lots of different choices here, but all of these you can read as keep me in the loop, notify me, keep me up to speed, and therefore, you'll see that the numbers here are higher than they were in social media. This first Send a customized email when a new SharePoint list item is added has been used 543 times. And that's an email, that's an Office icon. This is a push notification and push notifications will be delivered to the Flow Mobile app. We'll be returning to these push notifications later, but this time what we'd like to do is get a notification when something has happened in Twitter.
Email your Office 365 account new Tweets about a certain keyword. Now this one says in your Office 365 inbox, if we drop back a step, Email yourself new Tweets about a certain keyword, and we choose this one, and this is an Outlook.com inbox. If you're using Outlook.com then we have something for you, even if you're not using Office 365. But I'm using Office 365, this is the particular template that I would like to use.
Read the description, Track tweets about a keyword that you're interested in. Why would I want to do this? Well, I'd want to do this to be able to monitor information. I have, for example, a hashtag that I'm following and this is one way to be able to track a hashtag, for example, that I'm interested in, provided that I don't have a huge volume, because notice that this is going to generate email. So imagine if I have a hashtag that goes viral and all of a sudden there are thousands of tweets coming in I'm going to be getting thousands of emails.
You'll really want to think about how you'll use this and you would use it in circumstances where you were looking at a keyword that was not generating a huge volume of hits, but where you really wanted to be able to get some information and keep track. So each time there's a tweet about your keyword you're going to get some information. Let's Use this Template. First I need to sign into Office 365, and I'm already signed in, so it's just finding me, and I need to sign into Twitter.
Remember, I get to decide which account is being used, and I may have multiple Twitter accounts, some of us do, and in that case then I can choose which Twitter account I want to monitor. Notice what we're indicating the permissions are, read Tweets, see who I follow, update the profile, post Tweets, not be able to access direct messages, or see my Twitter password. That sounds good.
Very happy, but now I'm logged into everything, logged in as Office 365 user, logged into Outlook, logged into Twitter, let's Continue, so we can get from connections into the Flow. When a new tweet appears, and it says what is the term that you are looking for? And the term that I'm looking for is #microsoftflow. Now that's the hashtag that Microsoft uses for this, if I just use flow there are lots of things that use that hashtag.
Get user, and it's using the default, which is I want to know who tweeted it, what their Twitter username is. Get my profile, and this is simply a pass-through, so that it can see me an email. New tweet from, Name, Tweet text created, status, tweeted by username, Description, how many Followers and how many Friend they have. And those are simply the options that are already going into the body, there are some others that we could add as well.
This looks good. When a new tweet appears the hashtag included is #microsoftflow, grab that username, that's what the Get user step is doing, go Get my profile, so that we can Send me an email, that looks great, let's create it. Click Done. And here we are with our last new Flow. If you want to change the name on this you can.
Remember that any time you modify the name when you're using a template it's harder to connect it back to that same template. And if you do that my recommendation would be to Add a comment and indicate this Flow was originally named or was based on the template named, and provide that information, so that you have it. So let's take a look at how this one works. I've gone in and have just tweeted Check out the free Flow preview: flow.microsoft.com, and I used the hashtag I'm looking for, #microsoftflow.
So I would expect to see this now in my inbox. Let's switch to Office 365 Outlook. And here we go, New tweet from Gini Courter. Now this tweet could have been from anybody, I just did this myself, so I'd have one, but notice it tells us who tweeted this, Gini4Tips, that's me, the Description, that's my description, a link to the tweet itself, how many Followers I have, and how many people I follow. Pretty slick. And this one started running, again, very quickly.
I created it, waited 30 seconds, went in and tested it, and it works just fine.
- Working with flow templates
- Logging into the Microsoft Flow portal
- Choosing a template and connecting services
- Testing your flow
- Installing the Microsoft Flow app
- Editing a flow
- Creating a flow from scratch
- Specifying events and actions for a flow
- Adding a condition to a flow
- Building and publishing a recurring flow