Skip to main content

Move attributes and data models between company profiles

How to export custom attributes and data models from one company profile and import them into another company profile in the same organization.

Written by Andreas Stensig

If you have several company profiles in the same organization, for example because you operate under several company registration numbers (CVR), you don't have to build your setup from scratch in each one. You can export your custom attributes and data models from one company profile and import them into another.

The export is a JSON file, and you simply select the file when importing. There are no columns to map, and you don't have to make any decisions about the content along the way. All attribute types can be moved.

Before you start

Always import attributes first and data models afterwards. Data models are built from attributes, so the attributes must exist in the new company profile before you import the models.

The import does not overwrite anything. If a data model with the same name already exists for the document type, the whole model is skipped. Nothing is added to the existing model, not even attributes that are in the file but missing from the existing model. The same applies to models that use an attribute or document type that does not exist in the company profile yet.

Please note that the company profiles are not kept in sync. Export and import copy your setup as it looks right now. If you change an attribute or data model in one company profile afterwards, the change is not applied to the other company profile automatically. If you want the same change in both places, you need to make it in both company profiles.

This guide is for several company profiles within the same organization. If you want to share data with a supplier, read the guide on Workspaces.

Step 1: Export attributes from the first company profile

  1. Switch to the company profile you want to copy the setup from.

  2. Go to the Data tab and open Data models.

  3. Scroll down to "All your custom attributes".

  4. Click the three dots next to the "Create Custom Attribute" button.

  5. Select Export attributes. The file is downloaded to your computer.

Step 2: Import attributes into the second company profile

  1. Switch to the company profile you want to copy the setup to.

  2. Go to the Data tab and open Data models.

  3. Scroll down to "All your custom attributes".

  4. Click the three dots next to "Create Custom Attribute".

  5. Select Import attributes and choose the file from step 1.

Afterwards, check that the attributes appear under "All your custom attributes".

Step 3: Export data models from the first company profile

  1. Switch back to the first company profile.

  2. Go to Data models.

  3. Click the three dots in the top right corner, next to the filter and search field.

  4. Select Export data models. The file is downloaded as a JSON file.

Step 4: Import data models into the second company profile

  1. Switch to the second company profile and go to Data models.

  2. Click the three dots in the top right corner, next to the filter and search field.

  3. Select Import data models.

  4. Drop the file from step 3 into the window, or select it from your computer.

  5. Click Import.

The data models now appear in the Master models and Domain models tables.

If some models can't be imported

After the import, the window shows a red list of the models that were not imported, for example "11 data model(s) could not be imported". Click a model to see the reason.

The most common reasons are:

  • A data model with the same name already exists for the document type in the company profile.

  • The model uses an attribute or document type that does not exist in the company profile. Import the attributes first, and then try again.

Attributes were created, but are missing from a data model

Attributes are imported independently of data models. If a data model is skipped, the attributes that belong to it are still created under "All your custom attributes", but they are not added to any model.

This typically happens when the company profile already has data models with the same names as in the file, for example standard models like "Raw items" or "Masterdata". The existing model is left untouched. An attribute that only belongs to that model in the file is therefore created, but not connected to any model. The other data models in the file are imported normally, with all their attributes.

To find out whether this applies to you, compare the red list of models that could not be imported with the attributes you are missing. You can fix it in two ways:

  • Open the existing data model in the company profile and add the missing attributes manually.

  • Rename the existing data model, and import the data models again. The model from the file is then imported as a new model with all its attributes.

Remember

  • Always import attributes before you import data models.

  • The import does not overwrite existing data models. A skipped model is not merged into the existing one, so attributes that only belong to that model are created without being added to a data model.

  • Changes made after the import are not kept in sync between the company profiles.

Did this answer your question?