04-29-2021 11:14 AM
There are times when it would be great to have a List of all the Flows deployed on a SharePoint List/Library. It's not pretty straight forward, but it's definitely possible.
I am creating a Flow with manual trigger here which will get you a list of all the Flows deployed on a SharePoint List with the 'when an item is created' trigger.
**We need this step to get the Definition of the flow which contains detailed information about trigger and actions used in the Flow
** We need this step to populate the Array with all the Flow Definitions for further processing
** We need this step to filter Flows with "When an Item is created" trigger
** I am passing the GUID manually here but you can add another action to get the GUID of the List/Library by sending a rest query to SharePoint
There you go, you now have a list of all the Flows created by you and deployed on a SharePoint List/Library!
Hope this was helpful!
I know this is older but do you know of a way to go the other way? I have a list of all workflows through the CoE but I'm struggling with the logic to get all the SharePoint lists/libraries that are affected by the workflows.