1: In the ModelSDK the lookup function can be found here: https://docs.mendix.com/apidocs-mxsdk/mxsdk/finding-things-in-the-model#5-the-model-allmodules-function:
const model = workingCopy.model();
model.allModules()
.filter(module => module.fromAppStore === true)
.forEach(module =>
console.log({
name: module.name,
appStoreVersion: module.appStoreVersion,
appStoreGuid: module.appStoreGuid,
appStoreVersionGuid: module.appStoreVersionGuid
})
);
2: Use https://appstore.home.mendix.com/rest/packagesapi/v1/packages with your Mendix-Username and Mendix-APIKey as headers to get everything from the app store. Undocumented and not very performent, but use it while it lasts..
Unfortunately, that is not possible yet. The Version is only stored in the module if a user does that. But there is no unique way of doing this.
But I agree that it would be very nice to have such a functionality. Sounds like something for the Idea forum (if not already existing)
Many of the modules have their version number in a constant. you could create a page that just shows these constants (expose them to client).
Dear Customers,
We have published a public supported Mendix Content API that allows you to retrieve the Marketplace content information and its versions for both public and company-specific private content. This means that if you are using marketplace content, this API can help you getting the following information:
For more information and how to reach this API please visit the Mendix documentation.