You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add Countries REST API example to mapping skill
Realistic end-to-end example: single country (flat JSON, shared entity
for import/export), country list (array, different domain models for
import vs export), and a fetch→import→export microflow pipeline.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .claude/skills/mendix/json-structures-and-mappings.md
+197Lines changed: 197 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -306,6 +306,203 @@ DROP EXPORT MAPPING Module.Name;
306
306
307
307
---
308
308
309
+
## Export Workflow: PE → NPE → JSON
310
+
311
+
Export mappings work on non-persistent entity (NPE) structures that mirror the target JSON. When the source data is in persistent entities (PE) in the database, the typical workflow is:
312
+
313
+
1.**Retrieve** persistent data from the database
314
+
2.**Build NPE tree** in a microflow: create NPE objects, set attributes, link via associations to match the JSON structure
315
+
3.**Export to mapping** to serialize the NPE tree to JSON
316
+
317
+
```sql
318
+
-- Example: build NPE tree from persistent Order data, then export
0 commit comments