how to create microflows using Mendix SDK ?

1
Hi All – Can someone let me know how we could create microflows using Mendix SDK ?
asked
2 answers
0

Hi K Divya,

 

You can use this code in the SDK to create a microflow:

 

const newMicroflow = microflows.Microflow.createIn(mfModule); newMicroflow.name = "MyNewMicroflow";

 

This code is for the mfModule, so you will need to change some specifics. You were probably looking for the CreateIn function, which you can find here: https://apidocs.rnd.mendix.com/modelsdk/latest/classes/microflows.microflow.html

Also, some additional documentation: https://docs.mendix.com/apidocs-mxsdk/mxsdk/microflows-metamodel/#22-retrieving-objects 

answered
0

I would suggest you follow these excellent blog posts from Adrian Preston:

https://www.mendix.com/blog/a-mendix-sdk-primer-part-1/
https://www.mendix.com/blog/a-mendix-sdk-primer-part-2/
 

Code samples are also included. So will give you a lot of guidance.

answered