Automate Emailing Excel Task Reminders with ZERO Coding!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
last week tony one of our members asked if it was possible to have a spreadsheet automatically email a reminder containing a list of tasks a few days before an event for example here i've got my task list with the due date and the date we want to send out the reminder by the way my dates are formatted day month year now we can see that i need excel to send me one email containing my two tasks and another email to joe with her one task for this i'm going to look at how we can use power automate to program this with absolutely zero coding required all you need is a microsoft 365 account and your excel file saved either on onedrive for business or sharepoint online let's take a look before we switch to power automate it's important to point out that your data must be saved in an excel table you can do that via the insert tab and then table or use the keyboard shortcut ctrl t now my data is already in a table and if we look at the table design tab you can see the table name is tasks and we'll be referencing that in our automation at the top we can see the file is saved on onedrive you can use onedrive for business or sharepoint online for this but not onedrive personal now if you're familiar with powerautomate then you may have used the add-in available for excel you can access the add-in by the get add-ins icon and then search for it in the store and it used to be called flow they haven't updated it so in the add-ins it's still called microsoft flow for excel i've already got it installed and we can see it on my data tab over here on the right hand side i won't be using power automate here because the new flows that are available are limited to the instant cloud flow and that requires you to click a button to trigger the flow whereas i want to create a flow that's triggered based on the reminder date in my table without me having to even open the file and that means i need to use power automate online now you can navigate to power automate from the app launcher in the top left when you're logged into microsoft apps online if you don't see it in the list here you can click on all apps and then navigate to it i'm going to open it in a new tab now i'm creating a new flow so i'm going to click on create and i want a scheduled cloudflow and that's going to allow me to choose when and how often it runs i'm going to call it email task reminders i'm going to start it today and it can run at 10 a.m every and that's tuesday so click create so i've created my first step in my flow i can click on it here to edit it and we can make changes obviously i don't need to edit it it's doing what i want so i'm ready to add my next step here i want to get a table from excel and i want to list the rows present in a table here it is in the list the location is onedrive for business and you can see my sharepoint sites are also available because i've selected onedrive for business the document library is onedrive if you select sharepoint then you'll have different options for the document library then i simply need to navigate to the file so it's in a folder called blog posts and then automate and there's the file once you've selected your file you can then select the table remember my file has a table called tasks obviously if you have more tables in your file then they're all going to be listed here i just have the one now under advanced options i can set some filters i only want to get the rows in the table that contain today's date so here i'm going to enter in a filter and i'm filtering based on the reminder date it's called reminder date with no spaces and then eq which is the abbreviation for equals and i need to open the single quote and then for the date i can add an expression that automatically returns today's date so i want expression and then in the formula field i'm going to enter my formula the first function i need here is format the date and time and then i need to convert my time from utc and what time am i converting will the utc now time this is the same as the now function in excel now i need to convert it from utc to my local time zone i'm in australia on the eastern coast so my time zone is called e dot australia standard time and notice it's in single quotes close parentheses on my convert function and then i need to tell it the format and that's going to be yyyy mm and then day close a single quote close parentheses and that's my formula so we're formatting the date that we're converting from the utc now time into my australia standard time and we're formatting it in the format year month day click ok now i need to close the single quote so i've got an open single quote then my expression and then close single quote and then down here i need to set the date time format to iso 8601 now obviously not all of you are going to be on australia's eastern coast so in the video description i've included a link where you'll find the various time zone names so that's the step to get the data from my table let's add a new step to get a distinct list or a unique list of emails from that filtered list so that each person only gets one email we do this by adding a select step just type select into the search that filters the actions down here and it's this one here in the from i'm going to get the values from the table so i can just add dynamic content and click on that and in the map we're going to switch to text mode and in here all i want to do is grab the list of emails so select is just extracting the emails from my table let's add a new step because next we need to find a distinct list and we can do that with compose so select compose from the list and here the input is an expression we can use the union function to generate a distinct list and here i want to select dynamic content and we're going to reference the output from the select step which is our list of emails and then reference it again by referencing itself it generates a distinct list click ok and that's our compose step done next we want to add a control to extract the data for the email from each row of the excel table so we want a control and we want the apply to each action this is going to loop through the rows in the excel table so the source here is our output from the compose step remember that's the array of distinct emails and then i want to add an action to filter the values from the table so in here i want to filter array and there is there the filter array operation and my array to filter is going to be the values from the table where the email is equal to the current item now the current item is the outputs up here and we can see that that's the outputs from the compose step and the compose step is the distinct list of emails so we want to filter the array where the email is equal to the distinct list of emails and then we're ready to create the html table that's going to be inserted into our email so in here we want to filter for html and create html table the html table is going to get the body of the data in the filter array so basically the data from the excel file now i can let power automate insert all the columns from the original table or if i only want some columns i can specify them in the advanced columns and then instead of automatic we choose custom and in here i type in the column headers and then the values so i only want two columns the due date and the task name you can't have any spaces in the headers so that's why due date is one word now in the value i need to enter an expression remember my dates are date serial numbers in excel so i need to tell power automate how to format them so we're going to format date time and we're going to get the item from the due date column and we want to format that mmm day and then yeah i'll click ok the next column i want is just the task name so again we need an expression this time it doesn't need any formatting because it's already text so we just want the item and we want the item from the task column and lastly i want to generate the email so i'll add an action i'm going to use office 365 outlook and in here i want send an email v2 for the email addresses i can use dynamic content which is the current item remember the current item is the list of distinct emails so let's scroll down and choose current item then in the subject again i can use dynamic content here but i don't need it in this case i just want the subject to say tasks do the body is the html table we created here so we want the output of the html table i can add some text before it for example i might want to say please find a list of your upcoming tasks i can use the formatting tools up here to format this font and because the output is an html table if i'm familiar with html i can use the code view and add in some formatting to nicely format that table i'm going to leave it as is because it's fairly basic anyway now in the advanced options you can choose who the sender is and cc or bcc others you can also add attachments set sensitivity reply to and importance let's set the importance to hi because these are due tasks we want people to pay attention to them and that's it all i need to do here is save it and before we test it out let's recap what we've done first we set up the trigger for the flow and we set it to run every day then we got the data and filtered it for today's date then we got a list of all the emails in the file so that we could create a distinct list to ensure that people only got one email and in the apply to each step we filtered the data created a html table which we inserted into the email so let's test the flow i'm going to manually test it run the flow it's done let me go check my email and there's the email that i received you can see i've got two tasks book venue and book entertainment and the due date is march 3rd if you wanted to inspect any of these steps and see what the output is you can do that here so for example if we look at the select step you can see it selects the data in each row of the table so that's the first row second row third row and down the bottom we have the emails that it's extracted and then in the compose step you can see it's reduced that to just two emails so that we have a distinct list i hope you found this useful and you're excited to give power automate a try go ahead and grab the step-by-step written instructions from the link here and if you like this video please give it the thumbs up and subscribe to our channel for more and why not share it with your friends who might also find it useful thanks for watching [Music]
Info
Channel: MyOnlineTrainingHub
Views: 148,879
Rating: undefined out of 5
Keywords: power automate, excel emails
Id: 1g7NA5hYYSo
Channel Id: undefined
Length: 12min 50sec (770 seconds)
Published: Thu Feb 24 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.