hi,
In Mendix non-persistent entities (NPEs) are module-local, so you cannot directly use attributes of an NPE defined in Module A inside Module B. That’s why the attributes are not visible when you try to access them from another domain module.
Correct, working pattern
- Define the API request NPE in one module
- Create the non-persistent entity inside the module where you will call the API.
- Map the JSON structure to this NPE using an Import Mapping.
- Call the API in a microflow
- Use Call REST (POST) in that same module.
- Build the payload with a microflow, export mapping, or NPE.
- Parse the response into the NPE using an Import Mapping.
- Return the NPE list from the microflow
- Your microflow should return a List of NPEs that represent the API response.
- Use the microflow as the data source in the dashboard
- Bind the dashboard to a microflow that returns the NPE list.
- Do NOT try to share the NPE across modules
- Instead, expose a microflow in Module A that returns the NPE list.
- Call that microflow from Module B (dashboard) to retrieve the data.
Why this works
Mendix does not share non-persistent entities across modules by design. The supported way to exchange API data between modules is by using microflows as boundaries, not by sharing NPEs.