Register for a Free Account
Name
Email
Choose Password
Confirm Password

Importing Relationships and Entities

This guide covers two CRM imports. The first links two CRM records with a relationship, such as Parent and Child. The second creates entity groups, entities and entity fields in bulk, so you do not have to build them one at a time. Use it when you need to load relationships from a file, or when you want to reuse entities you have already built.

Check that the relationship is configured

A relationship type must exist in the CRM before you can import it.

  1. Go to CRM > Configuration and open the Relationship tab. It lists the relationships that are already configured.
  2. If the relationship you want to import is not in the list, click Add.
  3. Enter the first label in the Label field (for example, Parent).
  4. If the relationship has an opposite label, check Opposite and enter the second label in the Opposite Label field (for example, Child).
  5. Check Is Membership if the relationship is between a person record and a group record.
  6. Enter the Alias and click Save & Close.

    Add / Edit Relationship Type window with the label Parent and the opposite label Child

Download the relationship template

  1. Go to Import > Documentation and look for the template named after your relationship, for example "CRM Relation Type - Parent".
  2. Select it and click Download selected.

    Import Documentation tab showing the columns of the CRM Relation Type - Parent template

Fill in the relationship file

The documentation shows that two columns are required:

  • external_person_id: the external ID of the first CRM record.
  • related_external_person_id: the external ID of the second CRM record.

If either record is in CRM > Groups, enter 1 in external_person_is_group or related_external_person_is_group. The template also has person_id and related_person_id columns for the Site Stacker CRM Person IDs. They are ignored when the external ID columns are filled in.

For example, you have two CRM records: Person A with the external ID PERSON-A and Person B with the external ID PERSON-B. You want to import the Parent and Child relationship, where Person A is the parent and Person B is the child. Put the external ID of the child (PERSON-B) in the external_person_id column and the external ID of the parent (PERSON-A) in the related_external_person_id column.

Name, upload and run the file

  1. Save the file with a name that starts with the ID of the template you downloaded, followed by a period and a space. In this example the template has the ID 283, so the file name is something like "283. CRM Relation Type - Parent".

    Documentation list with the ID 283 circled next to CRM Relation Type - Parent

  2. Go to Import > Imports and click Upload to upload the file.
  3. When the file has loaded, right-click it and click Run Import in The Background.
  4. If the import ran successfully, you can see the relationship on the records in the CRM.
Note: The ID number is assigned by each installation. Use the number shown on your own installation's Documentation tab.

Import entity groups, entities and entity fields

Site Stacker can import entity groups, entities and entity fields with these import templates:

  • Configuration - CRM Entity Group
  • Configuration - CRM Entity
  • Configuration - CRM Entity Field

Import Documentation tab showing the Configuration - CRM Entity Group and Configuration - CRM Entity Field templates

Keep these points in mind:

  • The number at the start of each template's file name is different on every installation. Always download the templates from Import > Documentation on your own installation and do not rename them.
  • Build your file from the downloaded header row. A column that is not in the template makes every row fail.
  • After an import that creates entity fields, open the entity in CRM > Configuration and check each field's type and settings (required, searchable, sensitive, multiple items) against what you meant.

Export existing entities to reuse them

You can also export entities you have already built. In CRM > Configuration > Entities, right-click any entity group and click Export For Import.

Right-click menu on an entity group with Export For Import circled

Two common uses:

  • Reference forms. Reference form fields are often similar but not always the same. Instead of building each CRM entity field again, export one you already built and import the fields into a second entity group.
  • Multiple installations or sites. When an international or multi-office organization cannot share entities, entities are built to suit each region. Instead of rebuilding them from scratch, you can import them in bulk as needed.

Related guides