web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Applying a document ap...
Power Automate
Unanswered

Applying a document approval flow to multiple folders

(0) ShareShare
ReportReport
Posted on by 28

Hi,

I would appreciate it if I could be advised on the best solution for this.

 

I have created an approval flow that is triggered when a new file is created or modified within a project subfolder named 'For Approval', which then starts the approval process, and once the file is approved, it moves into a folder named 'Approved', which resides within the same subfolder as 'For Approval'.

 

I have over 25 projects and 12 different documents per project requiring approval, which reside in different subfolders within the main project folder.  Every project has the same named folders and subfolders.

 

Creating a separate approval flow for each of these documents is too onerous, even if copying one instance of the flow and amending, as the site address, folder and destination address has to be amended for each flow.

 

I would like to know if there is a way of automatically applying this flow to any folder named ‘For Approval’ (for all projects) that has a file created within it, and have details for the site address, folder and destination address automatically change to that which pertains to the project that the document relevant to?

 

Thanks in advance!

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Dee12 

    The short answer is that you can't do exactly what you want. 

    The long answer is that you can do the following:

    1. Create a Solution
    2. Create a child Flow that does the "heavy lifting" part of the approval process based on parameters passed in
    3. Create a parent Flow and set it to run on a selected library.
      1. Call the child Flow and pass in the required info
    4. Create another parent Flow on a different library and call the child Flow
      1. You can start with a copy of the first parent Flow
    5. And so on...

    The idea is that while you will need to create a parent Flow for each library, the approval logic, etc. can be contained within a single child Flow shared by all of the parent Flows

     

     

  • Dee12 Profile Picture
    28 on at

    Hi Scott,

     

    Thank you for your reply.

     

    I have read the guides for creating a child and parent flow, but still unsure on how to implement this so it works correctly, as I am still a novice.

     

    Would you be able to elaborate, please?

     

    I have project folders within a library and each project folder has the same folders and subfolders template within it.

     

    I had created the Flow below, which I assume in this case is the child Flow:

    1. When a file is created or modified (properties only)
    2. Start and wait for an approval

    Condition

    3a.       If yes, file is moved to Approved folder

    3b.       If no, requestor is notified of rejection reason

     

    How should I set up the parent Flow on a library and call the child Flow?

    Do I need to amend the child flow above, so this works as it should (the reason I ask is that the site address is currently specific to one particular project subfolder)

     

    Thanks, once again.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard