How to Create a Document Approval Workflow with SharePoint & Power Automate

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone in today's video we are going to talk about how to create a document approval workflow with SharePoint and power automate myself Muhammad zubair and this channel is all about showing you how to become a highly paid it pro really fast so without any further Ado let's get started [Music] okay for this type of work you need to have Microsoft 365 or Office 365 business or school account because SharePoint is not available in the free version of Office 365 or Microsoft 365 so make sure to have the paid account and then you are good to go okay this is my Microsoft 365 here we have app section from here we need to open SharePoint and power automate so here we have SharePoint and here we have power automate and in case if you do not see these two in here just click on all apps it will open a page like this for you from here you can search for anyone so I'll search for SharePoint here you see you can open that in a new tab and after that let's look for power automate here it is so this is how power automate looks like and this is our SharePoint so in power automate we need to create a flow that will create document approval workflow and in our shared point we'll have the directory or you can say the folder in which we'll have our files so basically go to the home section of your SharePoint first of all and from here you need to create a new site so here it says create site just click on it after that you have two options create team site or communication site make sure to go with Team site just click on it give a name to your site I'll name it as SVT after that here we have some other information that we can go for I'll leave everything as empty and I'll just click on next from here now from here you can add any number of members into your site that you are going to create onto your SharePoint after that you just need to click on this finish button and your site has been created successfully I'll not use this site I'll use the previous one that I have already created into my SharePoint with the name of ABC and here it is okay so we are done with creating our site let's jump into this one and in here we have to go into our document section I'll just open this one and in our document section we need to create two folders one with the name of approved and one with the name of pre-approved well you can go for any names as per your liking but for my convenience I'm going with very easy name inventions okay you can do same things in your Microsoft teams as well if you do not want to do all of this in your SharePoint you can do that in your Microsoft teams here I have my Microsoft teams and here we just need to create two more teams or two new channels okay again you can only create two new teams or any number of teams in your Microsoft teams if you are using Microsoft 365 school or business account in the free one you'll not be able to create any team okay you can create two new teams or two new channels with the name of approved and pre-approved because in pre-approved section we'll upload the files and after that those files will get approval or rejection and in case they get approved they will move automatically into our approved folder or into our approved teams on our Microsoft team or SharePoint for the matter so now we are done with the creation of our folder or let's say teams okay in case if you want to to know how you can create a team just click on it and from here to click from sketch you can have option in terms of the availability let's go for public give an aim to your team just click on it and you are done with creating your first team you can do so for the second team as well okay I'll go back so we are done with the SharePoint section now it's time to go to our power automate and in here we need to create a flow that will automate the process of approving and rejecting our files so first of all here we have a section that says my flows just click on it and after that here it says new flow you just need to click on this one and we'll create a new flow and from here select the option that says automated cloudflow just click on it and from here you can give a name to your flow or you can skip it as well for the moment I'll just skip it and we have successfully created our new flow and now it's time to customize this one as per or need so obviously as we want to create this one for our shared point so first of all I look for SharePoint into my flow and let's see what do we get this time so here we have SharePoint I'll just click on this one and in terms of the triggers we need to select when a file is created or modified trigger means what should happen or what should trigger this particular action so I'll just go for this option because obviously I want this flow to work when a file gets uploaded or gets created into my SharePoint so I'll just click on this one and we have successfully created our trigger now it says site address it means what is the site that you want to associate over this particular flow so here if you just click on it it will load all the sites that you have in your SharePoint on its own here you can see I have a side with the name of ABC I'll just click on it and in case if you do not see that in here just click on enter custom value and after that go to your shared point and click on your site which is ABC in my case after that just copy its URL go back to your power automate and you just need to paste it in here here you go it is working pretty fine after that it says Library name it means from your shared Point what is the library that you are going to associate with your power automate flow I'll go for documents because obviously I have folders in my documents then it is asking for the folders just click on this folder icon and after that just click on this arrow for share documents and from here I'll go for pre-approved because obviously the user who will upload the file will upload it in the pre-approved section and after that the file will get approved or rejected and then that file will move on to approved section on its own so I'll just click on this pre-approved folder and here you go so we are done with the trigger now we need to create a new Step so I'll just click on it okay now we need to look for an action I look for approval basically this action will start with the start and wait for an approval basically I'll get an email or the user will get an email who is responsible for approval or rejection of the files that are going to be uploaded into our SharePoint so for that purpose I need this particular action after that here it is asking about the approval type well there can be only two types of approval either it will be approved or it will be rejected so I'll go for second option in here and after that it will ask us for the more information in here in terms of the title you can go for anything in here I'll write document approval flow after that here it is asking about the person who is going to be responsible for rejection or approval of our documents so here I'll mention the username so I'll write here zubair here it is so I'll just click on it okay this Uber is a member of my Microsoft 365 and if you do not know where you can add your members or users just go to your Microsoft 365 dashboard and from here go to your admin section and from here you can add as many members as per your liking so here you see we have users team subscription and we have some other things in case if you want to create a new user just click on this plus button and you'll be able to create a new user here you see this is the admin which is Mohammad Aslam and here we have user that I have created other than that you also have to make sure that this particular user have the Privileges and all the permissions that are needed because this particular flow needs your user to have the permissions in order it to work so from here just click on your username and here it says roles click on manage tools and from here assign the permissions that are needed so I'll just close this one now let's get back to our business okay after that here here we have to provide the item link it means let's say I'm the reviewer I have the responsibility to approve or reject the file but how will I get the file so for that purpose we have to attach a file in here so just click on this field and from here look for link to item so I'll just search for link here it is link to item it means this will have the link to the file that will be uploaded into our SharePoint so here it is so we are done with this section as well now we need to create our conditions so for that purpose we need to add a new Step so I'll just click on new step and it will know on its own that now we need to have condition here it is just click on it so here we'll have two scenarios if document gets approved what will happen and if it gets rejected what will happen so I'll go for outcome because it depends on the outcome whether it is approved or rejected after that here I'll write a value while you can be anything I'll go for approves and after that we are good to go and now in the if yes section click on add an action now we need to have Microsoft Outlook because Microsoft Outlook will be the medium through which we'll get emails and will get approval and rejection status so I look for Outlook foreign here it is we have Office 365 Outlook just click on it and after that down here we have send an email V2 make sure to select this one I'll select this one as well so now before we move ahead with this information click on this three dot option menu and from here to click on copy to my clipboard after that come here in the no section click on add an action and click on my clipboard and add the same thing in here so I'll just click on the first one and it will reload our page and we'll have both of them in here so now let's add the information that is needed in this section okay now in two section we have to make sure that our email gets to the right person now question is who is the right person well obviously it will be the person who has uploaded the document so for that purpose just click on ADD Dynamic content and from here click on the option that says Modified by email because obviously this will be the person who has uploaded this particular file okay there is one more thing that I want to show you if I just open my Outlook if you remember we created a new site with the name of SBT into our SharePoint and here we have the confirmation email on our Outlook that we have successfully joined it for the moment we are not using it but I just wanted to show you that we have successfully created that one and we are part of it now let's get back okay so make sure to select this particular option that says Modified by email okay here we have the subject this is the same subject that we use in our general emails so I'll just write here document up to after that here it says body okay in terms of the body we have two options either we can go for hard coded message in here or we can make our message Dynamic how is it going to make the message Dynamic well for that purpose what it will do it will take things from the email of Jupiter on its own so what I need from that particular email first of all I need the name of the person who is going to approve or reject my document so obviously I'll go for name and after that I also want to have a link to document so I look for a link to document or a link to item here it is and other than that I also want to have response approver name it means I should know that who is the person who have approved or rejected my document so I'll go for responses approver name now we have the dynamic content into the body of our email earlier we were going with our hard coded message okay after that click on this add action button now what do we want to do we want to move that particular file into our group folder in case if our file or document gets approved so for that purpose look for move scroll down here we have move file so I'll just click on this one and now we have to add some more information here it says current site address so again I'll go for my abc site after that here it says file to move okay each file will have its own identifier so what we can do we can just select Dynamic content from here and it will take care of everything so I'll just look for identifier here it is I'll just click on this one here it is asking about the destination site address let's say you want to move your files that are going to get approved into some other sites on to your SharePoint but I want it in the same site so I'll just click on it and again I look for ABC after that here it is asking about the destination folder just click on this folder icon and after that click on this share documents arrow and here we have a group folder I'll just click on this one and now in case if the file gets approved it will move into this particular section here it says if another file is already there it is asking D that what if if we have two files with the same name just click on this one and say move with a new name so what it will do now it will give a new name on its own to the new file or the previous file and it will keep both of the files in the approved section or folder so we are done with the if yes section now let's go for the if no just click on it again so 2 we'll go for dynamic content and I'll go for Modified by email and in the subject line I'll write here your file has been rejected after that in terms of the body again we can have our custom values so in terms of the body I'll write here you need to upload file again because your file got rejected after that we can also have some custom responses in here as well so for that purpose I look for responses if I scroll down here I have responses comments I'll just click on it and now we are good to go so basically what will happen now well the person who is going to upload a file will be notified with this particular message in case if the file gets rejected or in case if the file gets approved he will be receiving or she will be receiving this particular content so we are done with the creation overflow and this was the main thing that we needed to do so now you just need to just click on the save button or before that just name your flow anything I'll name it as my document slow after that just click on the save button and it should take around 10 seconds to make sure that everything gets saved so we are done with saving our flow and now it is telling us that we should test it so for that purpose you just need to click on this test button so here we have two options either we can go manually or automatically but if we are going to use that for the first time or test that for the first time it will only allow us to go manually after that just click on this test button and now go to your SharePoint open your site and go to the pre-approved folder so I'll just go to my document section and from here let's open our pre-approved folder which is right here after that click on this upload button click on files and go to the directory from where you want to upload a particular file I'll upload this one and you will see this file will be uploaded into our site onto a shared point and now if I go back to my power automate you see here it says your flow is running and here you see we are done with the first step other than that now it is working on the second one and you will get an email into your outlook and in case if you do not get an email into your outlook you will get a message into your Microsoft team so do not worry and here you can see we also have the progress bar about how much process has been done for this particular section here you see here I have a latest request on 9 49 am now if I just click on it from here I can approve this document or I can reject it I'll just click on this follow-up button so after you approve the document you will get the email here as well so it means we have successfully approved the document well I have done the same thing multiple times that is why I'm getting this message that says you have already completed this request in your case it will not give you this particular information so now let's get back to our SharePoint and let's see if the file has been moved to our approved folder or not well this is our pre-approved folder and the file is here no more let's go back to our approved folder and let's see if the file has been moved to this particular folder or not so I'll just open this one and here you see our file have been moved successfully into this one that shows our flow have worked perfectly now let's go back to our power automate and you can see our flow has run successfully and everything went perfectly so that shows we have successfully created a workflow that will allow us to approve or reject a particular file with the help of our SharePoint and power automate and that brings me to the end of this particular video I hope now that you must have enjoyed watching this one and if that is the case do leave a like subscribe and press the Bell icon I'll get back to you as soon as possible till the next video take care
Info
Channel: SkillsBuild Training
Views: 17,936
Rating: undefined out of 5
Keywords: flow, document approval, approvals, power automate, sharepoint, flow approvals, flow tutorial, how to create approvals, microsoft flow, flows, sharepoint approvals, microsoft 365, office 365, how to create flows, how to use approvals, microsoft approvals, how to approve a document, create approvals, office 365 approvals
Id: DdUGHpw3YjA
Channel Id: undefined
Length: 17min 42sec (1062 seconds)
Published: Mon Sep 25 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.