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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Programmatically Assoc...
Power Automate
Unanswered

Programmatically Associate Approval Worflow on a modern Library

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Team, 

 

I would like to create a custom Approval Workflow base on this one "Request manager approval for a selected file"

https://emea.flow.microsoft.com/en-us/galleries/public/templates/1ad903d39acf4fa28ed02e111d5e0421/request-manager-approval-for-a-selected-file/

 

And propose this workflow as a template for end Users .

Is this possible ?

Could we also automate the Worflow association for new Document Libraries with custom code (powershell or C#) ?

Thanks for your help

Philippe

 

 

Categories:
I have the same question (0)
  • yeinerlop Profile Picture
    Microsoft Employee on at

    Hello @phentrin I would like to know if you can provide me more details in order to help you.

     

    are you trying to use that template and add the approval action? 

  • phentrin Profile Picture
    Microsoft Employee on at

    Hi @Yeiner , 

     

    On the modern document library, the OOB Approval workflow doesn't meet customer need.

    What my customer wants is to let the Owners choose the "Appovers" at site collection level.

    And all the requested document library approval should be approved by the designated approvers.

     

    So, we explore an custom solution to automatically associate and configure a PowerAutomate on the Default Document library because it could be tricky for end users.

    I don't know if we can create a Power Automate template and associate this template by custom code (Azure Function) at site creation.

     

    Thanks

    Philippe.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard