Export and import a module
Copy a module's design to another workspace as a JSON file, preview what will change, and create a new module or update an existing one.
- Who can use this
- Account owner, Manager
Copy a module's design to another workspace as a JSON file, preview what will change, and create a new module or update an existing one.
Export a module (admin screens say "entity") to a JSON file and import it into another workspace, or back into the same one. The file holds the module's design: its settings, fields, relations, layouts, record types, rules, workflows and actions. It does not hold records.
To hand a whole app to another workspace, with a code or link and safety checks, use Share an app with another workspace instead.
Click ⋯ → Export JSON on the module's row. A file named after the module's system name (for example Invoice.json) is downloaded and you see "Exported Invoice". Export JSON on the Overview tab downloads the same file.
The Import Module dialog opens: "Select a JSON file exported from Entity Manager. You see what will change before anything is written."
The file is checked ("Checking the file…"). It must be a module export of at most 10 MB. The preview names the module and the file.
A badge says New entity or Update existing. A table shows, for Fields, Relations, Record types, Rules, Workflows and Actions, how many will be added (Add) and how many are skipped (the column is Skip for a new module and Already there for an update). Notes in amber say which layouts the import sets or replaces. Problems that block the import are shown in red; if the module already exists ("Entity "…" already exists"), click Update the existing "…" instead to switch to an update. Plan check shows your usage "(checked again when you import)".
If a module with the same name exists, the preview shows "Entity "…" already exists" in red and offers the button Update the existing "…" instead. Click it to update the module you have; the preview is shown again for the update.
You see "Module imported" or "Entity updated from module".
| New module | Update existing | |
|---|---|---|
| What happens | The module is created with everything in the file. | Only what is missing is added (fields, relations, record types, rules, workflows, actions). Layouts are replaced with the file's layouts. |
| Deletes anything? | No. | No. Nothing is deleted. |
| If something fails | The whole import is undone. | Every change is undone. |
Imported workflows and rules keep the on or off state they had when they were exported.
| Message or symptom | Why | What to do |
|---|---|---|
| "This file is larger than 10 MB, which is too large for a module export." | The file is too big. | Use a file made with Export JSON. |
| "This file is not valid JSON." | The file is damaged or not JSON. | Export the module again. |
| "This is not a module export (it has no entity definition)." | The file is some other JSON. | Use a file made with Export JSON. |
| "Relations point at entities that do not exist here yet: … Import those entities first." | The module links to modules this workspace does not have. | Import those modules first. |
| "Importing … adds …, but your plan allows … Upgrade your plan, or remove some first; nothing was changed." | The import would go over a limit of your plan. | Remove what you no longer need, or check Admin → Subscription, then import again. |
| An error appears after you click Import or Apply update | The import failed, and every change it made was undone. | Fix the cause the message names and try again. |
| Import is greyed out | You don't have permission to create modules. | Ask an admin. |