Showing results for 
Search instead for 
Did you mean: 
Advocate I
Advocate I

programmatically create a flow

Hello. here is my scenario:

sharepoint online:

when ever somthing happens (not realy important) a new list is created - this does not seem to be supported action so i used a custome connector and crated the new list with the help of an azure function.


now i would like to attach a flow to that new list that was just created by code - is there some sort of api for this?





No this is not possible yet. 

Oh... 😞

is it on the road map?

same goes for the option of action to create new list/folder

In general the best thing to do is create a post in the Idea section.



I've created an idea for this now:


so please upvote it!




Community Support
Community Support

Hi @viperzzz,


Do you want to attach a flow to a SharePoint list created by code?


I agree with @Pieter_Veenstra's thought almost, I afraid that there is no way to achieve your needs in Microsoft Flow currently.


Currently, we could attach a flow to a SharePoint list via creating a flow from Flow Launch Panel of SharePoint list or adding the "For a selected item" trigger as the trigger of your flow. More detail about Flow Launch Panel of SharePoint list (or library) and the "For a selected item" trigger, please check the following article:


If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:


Best regards,


Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

not axacly. yes the list was created by code. but the flow needs also to be created by code.

lets say that the list was created manualy - would that give me some API to create the Flow?

Helpful resources

Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (7,628)