Forum Discussion
johnjohn-Peter
Sep 28, 2024Steel Contributor
Is there a way to call the same Flow from SharePoint UI inside multiple libraries
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
2 Replies
- SGBrumCopper ContributorI don't think you can have the same flow run across multiple libraries because, as you say, you need to specify the library in the trigger. But you can likely minimise your effort with child flows.
Each library can have its own parent flow that handles the specific trigger for that library. These parent flows can then call a shared child flow containing the core logic for processing. Any changes to the logic would only need to be made in the child flow, simplifying maintenance across all the libraries.- johnjohn-PeterSteel Contributor
SGBrum but we have none-technical people creating libraries, so they do not know how to build even a simple flow.... also i am reading that adding such a Flow (On Selected File) inside the none-default environment will not allow us to call the flow from SharePoint UI... and in our case we have PROD environment where we add all the PROD work, and we do not use the Default environment to store live/prod data.. so i think this appraoch will not work for me.. not sure if there is any workarounds?