How to programmatically import a flow to a new sitecollection?
I created a flow for DocumentLlibraryA and the trigger is on created a new document. I exported this flow as json and as a zip file. Is it possible to pragrammatically import this flow to a new sitecollection with the same document library (name and metadata)? Maybe powershell or c#??
The reason why I ask this is because we created a template from our department sites in a pnp template. For each new sitecollection we provision this pnp template to this sitecollection. So the structure is always the same as columns, contenttypes, document libraries, lists, views, navigation, pages etc..But I would like also to add a flow to one of the document libraries.
I found some documentation from Microsoft but there are not many tutorials about this topic: