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
I would suggest you follow these excellent blog posts from Adrian Preston:
Code samples are also included. So will give you a lot of guidance.