Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 83468

Mendix sdk error

$
0
0
async function serializeToJs() {     const workingCopy = await project.createWorkingCopy();     const domainModelInterface = workingCopy.model().findMicroflowByQualifiedName("FirstMatch");     try {         const domainModel = await mendixplatformsdk_1.loadAsPromise(domainModelInterface);         console.log(mendixmodelsdk_1.JavaScriptSerializer.serializeToJs(domainModel)); //print out the generated JavaScript         console.log("success!");     }     catch (error) {         console.log(`error: ${error}`);     } } serializeToJs();     In following script while executing the same i am getting TypeError: Cannot read property 'load' of null . while i want to load microflow named “FirstMatch”.

Viewing all articles
Browse latest Browse all 83468

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>