cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

REST API list of Workflows

Can I find a list of a site's workflows using a REST API call?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: REST API list of Workflows

Thanks everyone! I was able to answer my own question using the links and a bit of creativity.

 

So I don't think you can get a list of workflows at the site level, but I was able to do it by runnin two API calls using Power Automate:

  1. The first SharePoint HTTP GET call gathers all the lists on my site: https://[server]/[sitecollection]/[site]/_api/web/lists/
  2. A second SharePoint HTTP GET call loops through each list and gathers all the associated workflows: https://[server]/[sitecollection]/[site]/_api/web/lists/getByTitle('[ListTitle]')/WorkflowAssociations

It even told me whether the workflow runs manually, automatically on created, or automatically on modified.

View solution in original post

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: REST API list of Workflows

 

Hi @CCentofanti ,

 

I am afraid I am not quite sure what the scope of the "list of a site's" you mentioned is. Could you mention more details?

 

Power Automate Management seems to be able to achieve your needs. You can use List Flows as Admin action to get Flows in a specified environment.

https://docs.microsoft.com/en-us/connectors/flowmanagement/

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Super User III
Super User III

Re: REST API list of Workflows

Hi @CCentofanti 

 

If you looking for SharePoint lists REST API please have a look at this documentation.

 

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-re...

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials
Highlighted
Frequent Visitor

Re: REST API list of Workflows

Thanks everyone! I was able to answer my own question using the links and a bit of creativity.

 

So I don't think you can get a list of workflows at the site level, but I was able to do it by runnin two API calls using Power Automate:

  1. The first SharePoint HTTP GET call gathers all the lists on my site: https://[server]/[sitecollection]/[site]/_api/web/lists/
  2. A second SharePoint HTTP GET call loops through each list and gathers all the associated workflows: https://[server]/[sitecollection]/[site]/_api/web/lists/getByTitle('[ListTitle]')/WorkflowAssociations

It even told me whether the workflow runs manually, automatically on created, or automatically on modified.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Come join us today! Find your favorite faces from the community presenting at the Power Platform Community Conference!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Kudoed Authors
Users online (5,398)