Hi Parag, to import a JSON file into your Mendix app from a CI/CD pipeline artifact, follow these steps:
Expose the JSON file via a REST endpoint, make sure your CI/CD pipeline (GitLab,) provides a public or authenticated HTTP URL to access the artifact (the JSON file). Most CI/CD platforms offer APIs to download artifacts.
Consume the JSON in Mendix using a REST Call In Mendix, use a "Call REST" action in a microflow to make a GET request to the endpoint. Include authentication headers if needed.
Create a JSON Structure and Import Mapping
Use the JSON content to define a JSON structure in Mendix.
Create an Import Mapping that maps the JSON to non-persistable or persistable entities depending on your need.
Store or Process the Data Use the imported data to populate your domain model. You can persist it if you want filtering/searching capabilities or keep it non-persistable for lightweight, temporary use.
Display and Filter the Data, add a Data Grid, List View, or any reporting widget to show the imported data. Use XPath constraints or microflows to enable filtering.
I hope this one helps you :)
Hello Parag,
As per your questions seems you want to retrieve json file from server.
1.Host your JSON file on a server or cloud storage e.g., AWS S3.
2.Consume the JSON in Mendix,
use a REST Call in Mendix to fetch the JSON data.
3.Import mapping
Create a JSON structure in Mendix, add import mapping to import the json.
4.store the imported data into non persistent entity.
5.use datagrid, xpath, list view to filter the data.