using SDK get alljavaactiom

1
  using SDK get alljavaactiom Mendix Model SDK - v4.73.0 import { domainmodels } from "mendixmodelsdk"; import { MendixPlatformClient } from "mendixplatformsdk";   async function main() {     const client = new MendixPlatformClient();         const myapp= await client.getApp("e632dfcc-df39-4af8-a1a8-bf9dee3a0e39");     const workingCopy = await myapp.createTemporaryWorkingCopy("main");         const model = await workingCopy.openModel();     const javaActionsInterfaceList=  model.allJavaActions();     for (let index = 0; index < javaActionsInterfaceList.length; index++) {         const javaAction=  await javaActionsInterfaceList[index].load();         //const javaAction =  javaActionsInterfaceList[index].asLoaded();         const javaActionName =  javaAction.name;         //const javaActionModule = javaAction.containerAsModule;         let moduleName = "";         if(javaAction)         {             moduleName = javaAction.containerAsModule.name;         }         console.log(moduleName+">>"+javaActionName);     }         await model.closeConnection();     }   main().catch(console.error);   Error massage: Creating temporary working copy for branch 'main'... Successfully created temporary working copy with id 'e8c54db4-8430-4358-8975-e7b18aaafc93' based on branch 'main' Error: instance of JavaActions$JavaAction is not contained by a Projects$Module     at JavaAction.getContainerAs (E:\workSpace\mendix\my-app-generator\node_modules\mendixmodelsdk\src\sdk\internal\structures.js:412:19)       at JavaAction.get containerAsModule [as containerAsModule] (E:\workSpace\mendix\my-app-generator\node_modules\mendixmodelsdk\src\gen\projects.js:44:26)     at main (E:\workSpace\mendix\my-app-generator\script.js:17:37)     at processTicksAndRejections (internal/process/task_queues.js:95:5)
asked
0 answers