Power Automate Desktop : How to work with "Retrieve Email Messages from Outlook"(Outlook Automation)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello techies welcome back to power automate desktop tutorials in this tutorial we will learn how to retrieve email messages from our outlook by using outlook action all right first of all let me show you my outlook over here if you see on my screen i have installed outlook on my desktop and after that if you observe in my inbox i'm having 100 emails as well as few of the mails are read already now what i have to do i have to retrieve all these emails by using power automate desktop how can i go ahead and do that let me show you practically how we will do that first of all to work on these outlook actions first step we need to launch outlook let's drag and drop this launch outlook onto the workspace by using this launch outlook action we can create a new outlook instance for our particular actions all right now if you say after using launch outlook we can specify the instance in the variable produce that is outlook instance where flow variable all right let's click on save now to retrieve my android emails what is the action that we are going to use retrieve email message from outlook let me drag and drop this retrieve email messages onto the workspace now if you see over here i'm having outlook instance as my first parameter right what we have done we have already launched our outlook and we have stored the instance in the flow variable that is outlook instance that the same instance we are going to use it over here all right now the account this is the important one while we are going to work with the outlook how we can get the outlook account let me switch back to outlook over here now if you see over here i'm having lte in all the mails right there this is the account name if you don't get it again go to the tools and find options over there if you see over here i'm having mail setup click on mail setup and you can find email accounts click on that there you will find data files over here if you select the tab data files there you will find the name as lt the same account we have to give it over here in the account all right click on close now the same account i'm going to give it over here as lt okay so with the different different names it has been there in our accounts if you're having multiple outlook accounts they're based on the account name that you can go ahead and you can select it for and suppose if i'm working for two different accounts one for my organization purpose another one for the vendor purpose at that time what i will do i will create two accounts over there for the vendor as well as the organization purpose in that case for which account you need to work it out that account name you will prefer over here all right now the mail folder from which folder that i need to retrieve all the mails or specific emails based on our filter now if you see i want to fetch out from my inbox alright now i will specify the same in mail folder over here as inbox and now if you see the parameter retrieve there are three options again we are having one is all email messages you want to retrieve or unread email messages only or read email messages only based on the requirement we can go ahead and we can specify this now what i will do i will select all email messages for as a first step and after that what are the messages which are not read will make it as read by using this option as mark as red parameter but right now to make you understand what i'm going to do i'm going to disable this action now about these remaining parameters we'll talk about that one by one for the time being what i'm going to do i'm going to retrieve all email messages and then i'm going to store all the emails in the list called retrieved emails that is a wearable produce all right let me click on save now what i will do i want to know what are the mails out there in the particular retrieved emails flow variable i will use for loop for each loop action all right over here what i'm going to select i'm going to use retrieved emails the current email will be stored in the current mail i'm going to change the variable over here as current variable current mail and then i'm going to click on save now to display the current item what i will do i will use display message inside the forage loop and after that i will simply say outlook mail message that is the message box title and i will display the current item subject or from from so i will select from which person that i have retrieved that mails all right let me select from and after that let me click on save now by using retrieve email messages from outlook action that what we are going to do we are going to retrieve all the mails along with unread as well as red mails and then we are going to display in the message box if you observe in my outlook i am having more than 100 emails i can't show you all these things at the time of runtime let's run the flow to see the output flow execution started and you can see by using the email messages from the outlook that all the mails has been retrieved now if you see over here if i don't use the account name as lt if i'm going to use wrong account then it will throw some error but right now i have used the correct one so that it is not throwing any error all right now if you see i got the display message over here as from as no reply at the rate of github.com so i'm having hundreds of miles right now so that i'm going to skip this one over here just to make you understand that have taken all emails over here all right let's click on ok and you can see one by one the mails are coming over here and it will be displayed in the display message all right now what i will do i will show you only unread emails how can we go ahead and do that let's double click on the email messages from the outlook action over here you can see retrieve the parameter that we have i'm going to use under email messages only in this case what will happen it will retrieve only the 100 emails okay all right now if you see over here i'm having 700 emails in my inbox i will get it the seven emails over here let me click on save over here what i will do i will take the contour here to make you understand all right now i'm going to use display message let's drag and drop this display message onto the workspace now i'm going to give unread email count so that what will happen by using this we can know the count how many males or 100 emails right now let me select the message to display parameter over here and in the retrieve emails i'm going to select count all right now let's click on the save now what will happen whatever i have retrieved the email message from as under gmail all the mails will be stored in the retrieved emails flow variable and then it will be displayed the count by using display message let's run the flow to see the output now if you see i am having 100 emails count as 7 has been given by the output over here let me go back to now you can see over here in the inbox that i'm having 700 emails that is equal to the output what we have all right let's click on ok now what we will do we will see the red emails how many mails are there which has been read in the outlook account let me select the retrieve emails over here and then you can see read email messages only select that and then let's click on save now let's run the flow to see the output over here you can see i'm having the title has given as hundred but it's a red email account that i'm having 91 emails have been read as part of my outlook account that is with the name of lt all right now if you see in the retrieved emails that you will get it all the emails in the list of general values you can see over here all the emails which have been read by using retrieved email messages from the outlook action that all the mails have been stored in the variable that is retrieved emails list variable all right now i will show you one more action as part of this session let me double click on the dtv email message from the outlook now if you observe i'm going to talk about the option mark as read when we will make it this one if you observe in my outlook i am having 100 emails that is account is 7 as we have seen right now right all the 7 emails which are unread after returning the mails that i want to make the math read immediately because of if you see in the support project so what will happen we are going to get the emails and we have to respond back immediately and in that case by using this automation process what we can do we can read them and we can send the mails and then we will make it as read immediately that whatever the new mails are coming we don't want to make the burden on our flow that's the reason we're going to make the match right once the undead mail has been read successfully all right so let me select the relative over here i'm going to select only 100 emails and make them as mark as read and then i'm going to click on save now if you see in my outlook i am having 700 emails are there now after running the flow we will see how many mails are still available for the android emails all right flow execution has been started now you can see 100 emails is count is seven but internally that has been by using retrieved emails action that we have made the match read let's click on ok now if you see when i switch to outlook that i can see inbox has zero so how it is happened by using our retrieved email message from the outlook action that we have made it with the option as mark address after reading all the mails or particular mails or 100 emails that we can make them as mark address by using the option over there i hope you understand how to work with retrieve email messages from the outlook action as part of this tutorial thank you for watching power automate tutorials if you have any queries related to this concept please post them in the comment section i will see you in the next session till then bye bye have a wonderful day
Info
Channel: Learning RPA Technologies
Views: 21,775
Rating: undefined out of 5
Keywords: Power automate desktop, power automate, microsoft power automate, Microsoft Power Automate, microsoft power automate tutorial, power automate tutorials, power automate tutorial, power automate desktop automation, power automate excel automation, power automate desktop, power automate introduction, how to use microsoft power automate, outlook Automation, power automate outlook automation, power automate tutorial for beginners, power automate desktop outlook
Id: MPLbcN-WotA
Channel Id: undefined
Length: 11min 25sec (685 seconds)
Published: Mon Nov 23 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.