Call nanoflow from Javascript

0
Hello All,   I have tried to call the nanoFlow from the Javascript. It says, undefined and the properties of the nanoflow. Because it is not defined even though pass the nanoflow as parameter. export async function JavaScript_Call(nanoFlow) {    console.info(nanoFlow.propertyWithNanoflow); // output as undefined    mx.data.callNanoflow({       nanoflow: nanoFlow.propertyWithNanoflow,       callback: function(result) {            console.info("Nanoflow completed with result " + result);       },       error: function(error) {           console.info(error.message);       }    }); } What could be the issue?   -- BR Dinesh
asked
2 answers
0

Hi Dinesh , 

Can you check the below forum 

https://community.mendix.com/link/space/integrations/questions/120199

answered
0

When you create a Nanoflow parameter on a JavaScript action, the parameter itself is a reference to the Nanoflow. I presume that your nanoflow parameter in the JavaScript function is a nanoflow considering the naming. If that is the case, you shouldn't need to path to the property containing the nanoflow, i.e.:

 

nanoflow: nanoFlow

answered