Hi Cojocaru Razvan
No Mendix does not provide any API to get the MDA package name at runtime. The only thing you can retrieve directly is the model version, using Core.getModelVersion() or Community Commons’ GetModelVersion.
1. Easiest: Add a Constant (manually or via pipeline)
Create a constant: AppInfo.PackageLabel = "Release_1.0.3_20260226" → Show it on your UI.
2. Best (if using Mendix Cloud):
Call Deploy API Once The Deploy API lets you read the currently deployed package (including its name/version). Flow (super simple): After Startup → REST Call to Deploy API → store "PackageName" in a small NPE → Show it in UI Do this once, not every request.
I hope this helps
Cojocaru
It looks like this API call returns the package name: https://docs.mendix.com/apidocs-mxsdk/apidocs/deploy-api/#retrieve-environment-package Does this help?
Mike
hi,
No, there is no supported API to retrieve the “Model Package name” at runtime in the same way you can retrieve the Model Version.
Let me explain why.
GetModelVersion WorksThe GetModelVersion Java action works because the Mendix Runtime exposes the model version as part of the runtime metadata. This information is embedded in the deployed model and made available through the Core API.
The model version is part of the runtime’s accessible metadata.
The “Model Package” (for example, the .mda package name generated during deployment) is:
There is currently:
to retrieve the package filename of the deployed model.
The runtime simply loads the model; it does not expose the original deployment package name.
If your goal is to display deployment-related information in the UI, you have a few supported alternatives:
Continue using GetModelVersion, which is the officially supported way to display version information.
If you need to display a package or build identifier:
AppPackageName)This is the cleanest and most maintainable approach.
In Mendix Cloud or other environments, you can:
APP_PACKAGE_NAME)System.getenv() in a Java actionThis is commonly used in enterprise CI/CD pipelines.
In Mendix, deployment artifacts (.mda files) are considered infrastructure-level concerns. The runtime intentionally abstracts away build-level metadata.
For that reason, runtime access to the model package name is not supported.
It is not possible to retrieve the deployed model package name programmatically via Mendix runtime APIs.
If you need package identification in the UI, the recommended approach is to:
GetModelVersion for versioningThis aligns with Mendix platform design and supported runtime capabilities.