I would like to create a new Flow which is triggered on SharePoint item/document create/edit event. This flow will be a common flow for many SharePoint sites and I would like to programmaticaly attach these flows to the required lists/libraries across many SharePoint sites.
Is this possible?
How do i go about creating a common flow to be used across multiple SharePoint sites? and can I use CSOM, Rest API, Powershell to attach the flow to the libraries/lists on those sites?
It is not possible to attach a flow programmatically attach to a multiple lists. What you could do is create the main flow logic as child flow triggered by manual and set an input parameter depending on your requirement. Then individually create multiple flows for each lists trigger and call the child flow to pass the triggered body (input parameter). This way your main logic of the flow will act like a common function.
Did I answer your question? Mark my post as a solution!
If you liked my response, please consider giving it a thumbs up