Importing Sample Products
Import a small product catalog from a public JSON file into Emporix custom entities with the Import Tool.
This path is a single-stream Import Tool example that uses a static product JSON file. You create an HTTP connection to the file, import the items array into a custom entity, then review the instances in Management Dashboard.
Work through each section in order from top to bottom.
Before you start
See Access preparations for optional Import Tool access setup. For the full procedure, see Prerequisites for the Import Tool.
Custom entity for this example
Create a custom entity type before you map fields. The entity ID must be capitalized.
DEMO_PRODUCT– add mixin attributes whose Key values match the sample fields you want to import, for exampleproductCode,productName,shortDescription,productGroup,manufacturer, andunitPrice
Use field types that fit the sample values: Text for codes and names, and Decimal for unitPrice.

Sample file
Open the sample source file. It is a public JSON file hosted by Emporix:
The body looks like this:
The import reads the items array. Each product uses productCode as its stable key. You can map only the fields you created on DEMO_PRODUCT and leave the rest unmapped.
Creating a connection
Store an HTTP connection that points at the Emporix Cloudinary folder that contains the sample file.
Enter the HTTP details
Enter the following connection details:
Name –
Demo ProductSource type – HTTP / REST API
Base URL –
https://res.cloudinary.com/saas-ag/raw/upload/v1791295646/emporix-docsTest endpoint –
/Import_Tool_sample.jsonAuthentication – None
Field discovery – Choose None — each stream samples its own endpoint.
Save your configuration and then Test connection. When the connection is confirmed, you get a Connection OK notification.

Creating an import and stream
Create one Demo Product import with one stream that reads the sample file and writes into DEMO_PRODUCT.
Enter the stream request details
Choose + New stream and enter:
Name –
Demo ProductConnection – Demo Product
Resource name –
Demo ProductMethod – GET
Path –
/Import_Tool_sample.jsonRecords path –
itemsResponse format – JSON
Pagination method – None (single request)
Choose Sample endpoint to call the path once and list the fields returned for the key picker.

Configuring the HTTP endpoint and key resolution
On the stream row, choose the edit icon. Open the HTTP endpoint tab and confirm you have the following configuration:
Method – GET
Path –
/Import_Tool_sample.jsonResponse format – JSON
Records path –
items
Choose Save if you change anything.

Open the Key resolution tab and confirm Key field is productCode.

Mapping and publishing fields
Fetch a sample and map fields
Choose the Target schema version for your DEMO_PRODUCT type. Choose Fetch sample to load sample source records.
Choose Map from source. When source field names match mixin Key values, the Import Tool adds those mappings automatically. Use + Add row for any field that did not match.
If a source field such as productCode did not get a usable mixin Key, add the mapping manually with + Add row.

Running the import
Preview with a dry run on the draft
Go back to the import details view and choose Dry run. Choose a sample size and Draft, then choose Run dry run. If the dry run succeeds, you get a success notification.
After the dry run finishes, choose Dry run again, then choose View mapped sample.

Publish the mapping
Open Edit mapping again and choose Publish. Until you publish, real runs keep using the last published version, or fail if nothing is published yet.
After you publish, choose Dry run again. Keep Published mappings selected, choose a sample size, then choose Run dry run. Review View mapped sample to confirm the published mapping.
Reviewing results
Review run history and imported data
From the import actions menu, choose Run history.


From the stream actions menu, choose View imported data. Each row shows the source Key (productCode), the target Emporix ID, Outcome, and Imported At.


Open the DEMO_PRODUCT instances
In Management Dashboard, go to Custom Instances and open the list for your DEMO_PRODUCT type.

Open one instance, for example productcode-chair-oak-001. On the mixin tab, for example Demo Product, check the mapped values such as productName, manufacturer, and unitPrice.

What to do next
This products trail is complete on its own. For a different example that uses a public REST API with related streams, see Importing Users and Posts and then Embedding Comments on Posts.
Use the other Import Tool guides for options this trail does not cover:
Importing Using HTTP – pagination, headers, and the Import Service API
Field Mapping – transforms and publishing
Configuring Streams – delta fields, composites, deletes, and health
Troubleshooting
Test connection is unavailable
Choose Save first. You can test only after the connection is stored.
Test connection fails
Confirm Base URL ends at .../emporix-docs, Test endpoint is /Import_Tool_sample.json, and Authentication is None.
Fetch sample returns no records
Confirm Path is /Import_Tool_sample.json and Records path is items. Choose Sample endpoint when you create the stream if the key picker is empty.
Map from source adds no rows
Confirm the DEMO_PRODUCT attributes use the same Key values as the JSON fields, then choose the correct Target schema version.
productCode imports as 0
Change the mixin field type for productCode to Text, save a new schema version, update the mapping, publish, and run again.
Dry run or Full run fails, or Field Mapping shows Never published
Choose Publish on the field mapping, then open Run history.
Imported Data is empty
Confirm the last full run created or upserted records. Dry runs do not write target records.
Custom Instances shows no products
Confirm the full run succeeded, then open Custom Instances for DEMO_PRODUCT.
Last updated
Was this helpful?





