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 / Is there a way to call...
Power Automate
Suggested Answer

Is there a way to call the same Flow from SharePoint UI inside multiple libraries

(0) ShareShare
ReportReport
Posted on by 1,946 Season of Giving Solutions 2025
We have around 15 document libraries inside a sharepoint site. now we want to build a flow which is called from SharePoint list view UI as follow:-
 
 
 
and when the user click on the move icon >> the workflow should move the file to OWS using SFTP connector.
 
Now the issue i am facing is that when i define the flow, to run on selected file:-
 
 
 
I will need to define the library in advance:-
 
 
 
so not sure how i can allow the same flow to run on the 15++  libraries we have ? is this possible? If not then is there any workarounds ?
 
Thanks
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    14,605 Super User 2026 Season 1 on at
    You need to set up one flow for each of the 15+ document libraries. In addition, the for a selected file trigger can only be used in the default environment. If you create the flow in a non-default environment, you will not see the button to trigger the flow in the library.
  • johnjohnPter Profile Picture
    1,946 Season of Giving Solutions 2025 on at
    As this will be on PROD environment, so we need to add this flow inside our PROD environment solution, so you are saying that calling the flow which is inside a PROD environment from SharePoint will not work?
     
    If this is the case, then I am thinking of this approach instead:-
     
    1) To set a field named "Copy To OWS" inside the document libraries by adding the column to the content type.
    2) The column will be a Yes/No column,
    3) Where if the user wants to copy a file, the user will set the file "Copy to OWS" to Yes.
    4) Then i will have a scheduled workflow, which loop through all the libraries (current and future), get all files which have their "Copy To OWS" = Yes, if so, to copy the file, then set the Yes/No to No or empty... what do you think?
     
    Thanks
  • Suggested answer
    leo85 Profile Picture
    617 on at
    Yes, you can do this with one flow, but you cannot do it with the For A Selected Item trigger. Instead use the HTTP Request trigger.
     
    This trigger provides a public URL, with which you can trigger the flow. You can use column formatting in sharepoint to pass the site, document library and ID of the item. With this information you can then get the relevant document in SharePoint. So instead of creating 15+ flow, you only need to change the column formatting on each site.
     
     
    There are 2 caveats here:
    1. The URL is public. So anyone with on the internet can potentially trigger your flow, if they have the URI.
    2. The user will be forwarded to a new page, because they clicked on a link. You could have the flow display a message like: "Copying in progress."
     
    Best Regards
     
    ---------------------------------------------------
    If my answer solved your problem, please mark it as a solution.
    If what I wrote helped you, please give it a thumbs up.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard