From the course: Microsoft Power Automate: Beyond the Basics

Create a flow in Teams - Power Automate Tutorial

From the course: Microsoft Power Automate: Beyond the Basics

Start my 1-month free trial

Create a flow in Teams

- [Instructor] We have a budget workbook that we upload for comments a week out of every month. It's uploaded. A week later, it is removed from the library and we want to make sure we notify our team when it is available. We're also going to learn something about how preview actions work in Microsoft Flow while we're doing this. We're going to create new flow from a template and I'm in the team KinetEco, and the channel, General, where I want this flow to be created. And the flow that I'm looking for is called alert the team when specific documents are uploaded. It uses SharePoint and Microsoft Teams. My connections are verified. I click continue, and the first thing it's going to do is go to SharePoint and when a file has been uploaded, I'm choosing my site, I'm choosing my library name, and because this is not posted in a folder, I leave the third item blank. The next item is my condition, even though it's called post message scope, you can see at the point when I'm working on this that it's still in preview, and I'm going to say that name contains and the value and the value I'm going to enter here is KinetEco monthly budget, and it's just like this. See, there's no spaces in it 'cause it gets used programmatically. Going to copy this. I'll want it a few more times, perhaps. So if the name contains KinetEco monthly budget and I could also have xlsx, then post a message, alert the team. What I'm going to do is before I add any information, anything to the message, I'm going to hit the flow checker. That's cool. Now I'm going to enter some message. I don't want a path. I'm simply going to say the budget has been uploaded. And notice before I even do anything, the flow checker's already red. I knew this was going to happen because it has happened to me previously, and if I attempt to save it, the flow checker will tell me that an alert the team, type is required. And I'm telling you this to save you a little bit of time. Type is actually something that should be listed here with team, as required. Channels required, messages required. This alert the team preview part is using an old connection and therefore, the connection's expecting type, but we don't have a way to enter it here. What's our solution? We're actually going to dump this particular action. Delete it. Now what we'll do is add a different action. We just want something that will allow us to tell the team what's going on, so I can simply choose something like post a message. This time, I'll have to add my information that it's for the KinetEco team using the general channel so it knows where to post, and now I can enter information in the body of my message, and if I check the flow this time, note that my error has been removed, so I can go on. Next, I could provide a better message and also I can do some formatting. I can bold some of this, if I wish. If I wanted to add a link to the item or who had created it or something else, doesn't matter, but what I am going to do is clean up my actions and my titles of my items. So first, I'm going to rename this when a file is created because I want to make this easy for myself or whoever comes back and needs to work with this or modify it when a file has been added to KinetEco documents SharePoint library. Post message scope, that's cryptic. I'm going to rename this to say condition does name contain paste, KinetEco monthly budget. If yes, post a message. Just rename this a little. Post a message to KinetEco general. And we have one more, which is if known, we're going to leave this blank for now. We'll talk later about how we might want to do something different in that no almost every single time we create a flow. Alert the term when, and instead of specific documents, this is the name of the template. I'm going to say post a message to KinetEco general when KinetEco monthly budget has been uploaded. Let's save this. Our flow is complete. We'll test it in the next movie.

Contents