How To Add Email Notifications To A SharePoint List

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey there Louie here in this tutorial I'm going to demonstrate how you can add email notifications to a SharePoint online list now specifically I will demonstrate how you can create a workflow in Microsoft power automate that will send emails to users whenever a new item is added to your SharePoint list or whenever an existing item is updated now we'll also look at how you can incorporate conditions into the workflow so that those email notifications only fire when certain conditions are met now let's go ahead and let's dive in all right now you can see here that I have a SharePoint online list called project task tracker now this list is being used to track project task assignments now we are going to create a workflow that sends an email to the task owner whenever they are assigned a new task and we're also also going to create a workflow that sends an email to the task owner and contributor once a task is completed all right now the first thing that we need to do is navigate to Microsoft power automate from the landing page you want to click on the create button and next you want to select automated Cloud flow now automated Cloud flows trigger based on an event taking place now we'll add our trigger in a second but before we do that you want to go ahead and give your flow a name next you want to place your cursor in the search box and you want to search for when an item is and we are going to select the trigger when an item is created or modified so I'll go ahead and select this and I will click create and you can see here that our trigger has been added now an important note about this trigger this trigger will execute this workflow whenever a new item is added to your SharePoint list or when an existing item is updated now the next step is to add the address for your SharePoint online site now I'll just quickly flip back to my SharePoint site and I will select everything up to and before the lists word here so this is the SharePoint online site that hosts this list I'll click back into Power automate and I will paste that value in here now you can see here that once I paste the value in it is also going to display that in the list of available sites you want to go ahead and select it and then the next step is to select the name of the list that you would like to feature in this workflow now I'll go ahead and select my project task tracker list and we've now added our trigger to this workflow the next step is to click on the new Step button and what we're going to do here is we are going to search for the action that is called switch and we are going to select this switch control now I switch control in power automate allows you to program your workflow to execute different actions depending on different conditions now in this workflow we are going to switch on our status column which means depending on what state an item is in we are going to send one of two email notifications If an item is in backlog status then we are going to send a task assigned email and if an item is in a completed State then we are going to send a task completed email now the first thing that you need to do with your switch action is is you need to select which value or field we are going to be switching on now if I place my cursor in this choose a value box you will see here that this Dynamic content box appears on the screen now Dynamic content allows us to actually reference data from the SharePoint list item that triggered this workflow now what I'm going to do is I am going to look for my status column and you can see here that when I type the word status that the list of options in this menu is reduced so I'm going to go ahead and select the task status value and once I do that you're going to see here that it dynamically piped in this block here now I will quickly flip back to my SharePoint list now in this example our business process is that when a new task is assigned to an individual for the first time it will automatically default to a status of backlog so we're going to come back into Power automate and here in our case block you'll notice this field called Equals we are going to insert the word backlog now it's really important to note that the value that we're placing here has to match exactly what shows up in our status column otherwise this workflow path will not execute now another little tip to help you keep your workflows in power automate clean when you're building out sort of these conditional paths it is a good practice to rename these paths here so if I click on the three dots you'll see I have the option to rename this entire case block and what I tend to do is I will just put a hyphen and say task assigned email notification and that allows me to quickly understand that everything that is going to be encapsulated in this case block will pertain to the email notification now the next step is to click on the add an action button and what I'm going to do here is type send an email and I am going to select this send an email V2 Office 365 Outlook and this is going to add the send an email V2 card to this case block now the first thing that I will do is click on ADD Dynamic content again and you'll see here that this brings up the dynamic content menu now because I'm looking for email addresses you'll see here that the list automatically filtered to show me only those SharePoint list item values that are emails so you can see here I have the task owner email so I'll go ahead and select that and you'll notice that it added it to the to field and the next thing that I'm going to do is then place my cursor in the subject field and here you can either just hard code in a subject line or you can hard code some piece of the subject line and then also pipe in additional information now you can see here that I've added the text task assigned colon and what I'm going to do is I'm then going to pipe in the title now the title field in my SharePoint list was actually renamed to task name but it did not update here and so when we actually test this out you'll see that this Dynamic content is indeed going to pipe in the value that is the task name and the next thing that we're going to do is then add the content that we would like to be included in the body of this email now I'll go ahead and add some text to this email and you can see here that I've added in this text that reads hello you have been assigned a new task the details of the task are as follows and then I listed out a bunch of different fields followed by a colon and I'm ending this email off with the text that reads click here to view the task card details now what I'm going to do is actually add additional information to this email so from our Dynamic content so what I'm going to do here is say hello and I'm going to select the task owner name now you'll see here when I type task owner I have a bunch of different options and I will select task owner display name and you'll notice again that the dynamic content shows up as these field cards next I will add in the task name and again I will search for title as I renamed my title field to task name next I'll add the start date to this email then I'll add our end date then I'll add my effort value and I am also going to add a hyperlink that the recipient of this email can click on in order to be directed or navigated to the SharePoint list for the specific item that triggered this workflow now to do this you want to search for link and you can see here this field that is called link to item I'll go ahead and select this here and what I'm going to do now is I will save our workflow and you can see here that our flow is ready to go now we're going to go ahead and test this by adding a new item to our SharePoint list now before I go ahead and create a new item in order to test out the workflow I did want to draw your attention to the two visual status columns that I have featured in my list now the task status column is leveraging conditional formatting to display fields in a different manner depending on which value is selected in that choice type column and the percentage complete column is leveraging Json formatting to display the percentage complete value as a dynamic bar chart now if you are interested in learning how to implement conditional formatting or in how to implement the percentage complete bar chart I do have two separate tutorials that will guide you through the process process to implement both step by step I've included the links to both of those tutorials in the description below so you want to make sure that you go ahead and check them out after you finish watching this video alright now I'll go ahead and click on the new item button and here I will fill out my new item card all right now I've gone ahead and filled out my task card here now I do have one additional field to update and I'll go ahead and fill this out here now I do want you to notice that once I place a value here that is over 50 you are going to see that another field displays on the form now this is called SharePoint list form conditional formatting now if you are interested in learning how to conditionally hide or show fields on a SharePoint new item form again I do have a tutorial walking you through step by step how to implement this I've included a link to that video in the description below and again you want to go ahead and check that out once you finish watching this video all right now I've input my last value here and I'll go ahead and click save and we can see here that the task was added to the list now what I'll do is I will switch over to Microsoft Outlook all right now you can see here that our email did fire and again you can see the subject line task assigned and it piped in the name of the task that we just created and if you look at the body of the email you can see here hello oh and there's our Dynamic value for the task owner you can see here the task name was piped in the start and the end date were also piped in and the effort value as well and you can see here this hyperlink that was included in the body of the email now I did want to also draw your attention to an alternative method for adding email notification capabilities to a SharePoint online list now you'll notice here I have this additional email here that I received at about the same time that our email notification fired so I'll go ahead and click this and you can see here that this is being sent from SharePoint online and it's being sent to me and it has also piped in the values of our SharePoint list item now this method is known as a SharePoint list alert you can actually set SharePoint list alerts up directly from SharePoint you do not have to use Microsoft power automate in order to get these kind of email notifications I also have a tutorial outlining how you can configure SharePoint list and Library alerts and again I've included a link to that tutorial in the description below next we're going to go ahead and build out our second email notification in power automate and that is going to be sent to multiple recipients once a task has been completed now you can see here that I'm back in power automate now the next thing that I will do is add another case block to our workflow now to add an additional case block what you want to do is place your cursor over the add case button and you want to go ahead and click on this and you're going to see here that this now adds an additional case block to our workflow this time what we're going to do is we are going to build out our completed email notification so I will type in completed in the equals box next you want to click on add an action and again we are going to search for the send an email workflow action I'll go ahead and select that here and next I'll click into the to field and click on ADD Dynamic content and this time I'm going to add the task owner and I will also add the task contributor now important note if you are piping in multiple email addresses then you want to place a semicolon between those email variables so you can see here that I have my task owner semicolon and then my task contributor next I'll populate my subject field you can see here I've added task completed and I've typed in the name of the task and next I'll go ahead and build out the body of my email now you'll notice that for my task completed date this time I am using the modified date which will look at the date on which the item that is triggering this workflow instance was last modified next I'll go ahead and click save now you can see here I filled out my task card and I've set the status to completed now I'll go ahead and click save and you can see here our email notification fired you can see here that it was sent to the task owner and contributor and you can see the additional information that was piped in the body of the email so that's it in this tutorial I demonstrated how you can add email notifications to a SharePoint online list I hope you found this video helpful if you did please hit that thumbs up below and be sure to subscribe to stay up to date on the latest tutorials that I publish I'm Louis acaballas thanks for stopping by talk soon
Info
Channel: Lui Iacobellis
Views: 21,719
Rating: undefined out of 5
Keywords: sharepoint list email notification, sharepoint list email notification assigned, sharepoint list automatic email notification, sharepoint list workflow email notification, sharepoint task list email notification, sharepoint online list email notification, how to create an email notification workflow for a sharepoint list, sharepoint custom list email notification, sharepoint list power automate email, send email sharepoint list power automate
Id: qrD1tleQepM
Channel Id: undefined
Length: 15min 40sec (940 seconds)
Published: Wed Apr 26 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.