 Hello everyone and welcome back to another video. So in today's video we're going to be using Power Automate once again but for the purpose of sending us an email notification every time a new file is uploaded to a given document library. So what we've got on the screen at the moment is we can see a document library called smith document and to start off with It's just completely blank. So this is going to be our document library in which we'll be adding our files to then trigger The email to send you can see we've also got outlook open ready to go But more importantly we'll jump straight into power automate so that we can create this flow So as you'll see we'll use it. We're not using desktop. We're using the power automate in the cloud Which may be more suitable depending on what you're using But hopefully you can obviously use this video regardless to help give you an indication on what you need to do So once we're here all you do is go into my flows and simply go new flow and we'll say automated cloud flow So you would have seen in our previous videos And if you haven't seen those and you'd like to the link to the play this should be on the screen somewhere now We previously used things or the scheduled cloud flow. So this would schedule at a given time For us we want to do it based on an automated trigger. So what I'm going to do is click automated cloud flow We all should give it a name and we'll call it new SharePoint File and of course I'm sure you're all aware when it comes to naming whether it's a flow or anything at all we obviously want to be as descriptive as possible and we shall call this a new Will not call it. Sorry. We're searching for what trigger we want new file created And when we scroll through our list of options, you can see it's been filtered We want this one here. So when a file is created and if I hover, I hope you can see it When I've shared point when a file is created properties only So all we want is just the property information from the file. So we should select that And then we'll go on to create So of course the first thing it's going to do is want us to provide some more information to this initial trigger So for all we're going to do is go into site address. We only have one SharePoint site, but you may have multiple in which you need to select from and then when it comes to the library name All I'm going to do is select our submit document. And as we can see, that's the document line we have open here After that, we don't need to provide anything else. All we need to do is now go into new step And simply when a new file is created and it's got the property information We just want to do send email And when we search for that, all we need to look down is here Okay, so we've got a couple of options. So we're going to be using send an email this one you see here Alternatively, if you're trying to send an email from a shared mailbox, this is the option that you're going to be wanting here Both very similar. So again, if you're using this option, you can still follow on this video to get the needs You're the needy the information you need. Sorry But we are going to be just using this because it's coming from a personalized or personal outlook email You can see I've got an error here But this may or may not be an issue to you or I need to do is just make sure I'm referencing the right account And you can see that error has now gone So the first thing I'm going to do in here is obviously provide an email address to which I want to send our email Which I've just now entered in there And then the next thing we want to do is provide a subject for this email. So let's go for new file dash sub Document so again your share point document library is probably going to be far more descriptive than mine But simply it's just a simple subject that shows there's a new file And this is the document library it's been received to but of course you could make that a lot more Glamorous than what I've done there and all I'm going to put in here is hello a new file has been created in document library And again, you don't need to do all this text. I'm just trying to really pad it out just to give examples of what you can do submit document And then let's now just put some of our dynamic dynamic content in here So we'll say we'll call it what's the file name. Maybe we're interested in this So we shall having clicked in here you can see it's automatically popped up with our dynamic content And as you know, all this is the information that's been captured at this very first trigger So all I'm going to do is scroll down And we should be able to see the option for name yet So we can say then file name. So we'll select name We'll do another couple of new rows and let's say we'll also get in here the I don't know who it was created by so created by And then we should have somewhere here Created by yep, they go display name And then what you might want to do at the end here is go Maybe no, we'll leave it for that and we'll come back to the next example So this is all our information that we've entered. So what I'm going to do now is click save And you see it's saving perfect. So it's now recommended that we test this flow So we'll go top right over here click on test manually test And yet to see it work start perform the starting action, which is obviously add a new file So what we'll do is we'll go into our analytics Document library and we'll simply upload a file And let's go into desktop when I've got prepared and we can see we've got a very important document here So we'll add that into there And hopefully that will upload for us perfect So we can now see we have a new document added to this library So if we now go into our share not a share point. Sorry our outlook folder We can now see that we've got a new email that's been received here. So if we click on this We can see our nicely populated email, which got our detail that provided So you can see the subject line is new file submit document Hello new files been created in document library. What is the file name? The file name is important document Yes, we confirm that as the case and also we can see that it was created by me So great. So we can now stop there and obviously We can say tick we've got our flow in place and we're going to be notified every time a new document is created However, there's one little extra trick that you can do on here to make it a bit more dynamic with the user So obviously you may want to include a link So it's great someone gets this email and they could navigate to the this document library But I want to now add a link in here Which will take the recipient of the email straight to that document So what we're going to do is just go into here and we'll just delete this file Just so we can start with a blank canvas again And we'll go into our power automate and we'll go into edit So from within our the email Content that we can see in here All I'm going to do at the bottom is you see on the top right here. We've got this code view So I'm just going to click on code view And in this view we can now see the actual HTML code of the email So if you're familiar with HTML, obviously you can tidy this up to heart's content to make it look As tidy as possible, but for me all we're going to do and again Don't crucify me for maybe doing this wrong, but we're going to add a simple piece of html So this is like a little extra top tip Which will allow you to add a hyperlink to some text and that hyperlink obviously being the link to our document So all we need to do here and you can just copy this as I type it is a hreff like that Equals and then we need to do a double quotations And this is going to be the link. So for example, we might want to put in here www.google.com And let's go at the end here We need to do a close and our text is going to be here And let's then do a another close of all this stuff and talk through what we've done So at the moment you can see we've got this line of code here href google.com here What this would do if we were to send this is you would simply get the Single four characters for the word here, but it would be hyperlinked. So if you were to click on it It would take you to google.com Well, we don't want to go to google.com What we actually want to do is we want here to link to our document Specifically the one that has just been created So all we're going to do is remove the word google here And as we scroll down through our dynamic content, you will see there is an The detail of the link to item there you go. So link to item So we'll literally select and add that there and the last part we're going to do is just add a bit of text to the front of this So let's go. Let's write the word click And then the other side of this we'll go here to view document So a couple of extra bits just to be wary of there Obviously, I've included a space after the word click here just so click here isn't one word And likewise you've got that at the end here just in front of the two So what this should now give us is in additional in addition to all this other content We have a line that says click here to view document Here will be a hyperlink so they can click on the word here to then view that document. So let's save this And once it's saved just obviously thinking about it now Perfect really test so we'll go back into test manually test And then when prompted great. Yeah, we can see perform the action So we'll go back into our SharePoint document library Upload that same file once again our important document open Great, so we can see that that now is loaded in there if we now go into outlook We can see this is obviously our original format for our email So we've literally just got our first line of text the document name and who it was created by But as we can see we've received a new email. So let's click on that We can see we've got all of our original content here But we've also got this additional line saying click here to view document So if we click on here in a new tab, the document will now open So we can see it's important document and yet there's no content within this This file just there's just a test document But you can see the real value that this now adds So obviously the recipient of this email has now got a link to the document So if they need to have a look at it, they can obviously check it like so Of course, we've just gone for a very basic template at this stage And you can add as much detail of the file as you require But again, this is just a really useful way to use power automate as a way of notifying People once a document is added for various reasons, whether it's for approval Or maybe that individual now needs that information to do a piece of work So I hope you enjoyed that video if you did, please don't forget to give the video a like It's obviously not only greatly appreciated by me, but helps the important YouTube algorithm to enable more people to hopefully find our videos If it's the first video you've seen or you've watched our videos in the past and you've still yet to subscribe Please can I ask you to subscribe to the channel and also hit that bell notification button That way you'll be notified of all of our videos as they come out in the future As always, if you have any questions about this video, just drop a comment below and I'll get back to you as soon as I can Thank you again for watching and we'll see you in the next video Thank you