Forum Discussion
Call Single Power Automate Flow for Multiple Document Libraries SharePoint
Vidit_Gholam you would either have to trigger the flow manually or on a schedule. For example, the following flow runs at 7am each day. I've added a get past time action set to 1 day. Then add a get files (properties only) action for the first document library and set the filter query to Created ge 'the outputs of get past time' - make sure it's wrapped in apostrophes. Copy the action to your clipboard then click the + between the get past time and get files action and select add parallel branch and select the get files action from your clipboard and change the document library to the next. Add a parallel branch for each library you want to include in the flow.
Under each brach you will need to add an apply to each, the start and wait for an approval action (again, you can save time by using the clipboard) and any other actions you want.
Rob
Los Gallardos
Microsoft Power Automate Community Super User
- Vidit_GholamDec 13, 2022MCTHi Rob,
Thank you for responding, the approach sounds great but unfortunately will not work for me as I need inputs from the users. But I have figured it out I triggered the flow by a button. I just wanted to know one thing is there a way to provision every new document library with the custom button I created or the permission I assigned to my library.
Thanks,