cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CCentofanti
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
CCentofanti
Frequent Visitor

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
v-bacao-msft
Community Support
Community Support

 

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.
abm
Super User
Super User

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 blogPower Automate Video Tutorials
CCentofanti
Frequent Visitor

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,968)