Importing CRM Records (Part 2 of 2)
This is Part 2 of the guide to importing CRM records. It covers the Person Activities, Person Note, Person File, Entities, Record Types and Relationships templates. Start with Importing CRM Records (Part 1 of 2), which explains the import order, where to get the templates and the shared columns (person_id, external_person_id, external_person_is_group, acl_tag_id and external_acl_tag_id).
In every table, bold column names are required.
Person Activities
These templates attach activities from the external data source to CRM records. There is one import file per activity type configured in CRM > Configuration (Chat, Conversation, Email, Phone Call, Text Message, Social Media and more). They all use the same columns.
| Column name | Description |
|---|---|
| external_id | Record's ID from the external data source. Should be unique across all activity types. |
| subject | The activity subject |
| body, notes | The activity body and the activity notes |
| date | The date the activity took place (YYYY-MM-DD) |
| person_id, external_person_id | The person the activity is with. One of the two is required. To add more people, use the Activity People import. |
| from_person_id | The person who performed the activity (Site Stacker CRM Person ID). Ignored if from_external_person_id is specified. |
| from_external_person_id | The "from" person's external_id from the Person/Group data map |
| external_person_is_group, from_external_person_is_group | Set to 1 to link with a people group record (see the shared columns) |
The Activity People template lists the external IDs of the activities and links each activity to the person or group it relates to.
| Column name | Description |
|---|---|
| external_activity_id | The ID passed to the Activity data map |
| external_person_id | The ID that was passed to external_id in the Person/Group data map |
| external_person_is_group | See the shared columns |
Person Note
This template attaches notes from the outside data source to CRM records. It also has all five shared columns.
| Column name | Description |
|---|---|
| id | The Person Note ID. Used to update existing notes. |
| from_person_id | The Site Stacker CRM Person ID of the "from" person. Ignored if external_from_person_id is specified. |
| type | Note type. This can be whatever note type you want. |
| subject | Note subject |
| body | Note body (the full note for the CRM record) |
| important | Marks the note as important. 0=No, 1=Yes. |
| model | Optional. Links the note to another kind of record. |
| foreign_key | Optional. The ID of the record named in model. |
| external_id | Record's ID from the external data source |
| external_from_person_id | The "from" person's external_id from the Person/Group data map |
| external_from_person_is_group | Set to 1 if the "from" person is a people group record |
Person File
This template attaches files from the outside data source to CRM records. It also has all five shared columns.
| Column name | Description |
|---|---|
| external_id | Record's ID from the external data source |
| label | The import file label |
| import_path | The path used in the Import - Secure File Uploads section |
Entities
Entities are custom fields or data that can be attached to a CRM record. If the data you are importing is not native to Site Stacker, add an entity to hold it. Data groups are also a big part of entities. See the related guides below for both.
- Go to CRM > Configuration and click the Entities tab.
- Click Add Entity Group, name it and click Save & Close.
- Add an entity in the entity group. An entity is a category that holds entity fields. For example, an "Education" entity can have Grade, Distance to school, School Progress and Favorite Subject as fields.
- Right-click the entity and click Manage Fields. Click Add to add each field that belongs to this entity.

A template for each entity then appears on the Documentation tab of the Import component, named "CRM Entity - {Entity Group} - {Entity}".
| Column name | Description |
|---|---|
| id | The entity row ID. Used to update existing entity rows. |
| external_person_id, external_person_is_group, person_id | See the shared columns |
| external_id | Record's ID from the external data source |
| acl_tag_id, external_acl_tag_id | Optional Security Tag for the row (Site Stacker ID or external ID) |
| {entity field aliases} | One column for each field of the entity. The template shows which are required. |
Record Types
Record types are, in a way, tags on a CRM record. Use them to filter CRM records (for example, all records with the "Missionary" record type) or to trigger an event in Spark or Motion 2. Regular tags are mostly used for front-side filtering, for example by the country where a missionary serves.
Important: Imports trigger Spark row by row. Before you import the Donor record type, disable these Spark events, or the import will create a very large mess:
- Person Type Assignment - Person Type is Donor
- Person Type Unassigned (all)
- Person Assigned to Workflow - Workflow is Donor Management and role is Donor
- Person Type Assignment (if there is one)
A record type must exist in the CRM before you can import it:
- Go to CRM > Configuration and click the Record Type tab.
- Click Add and name the record type.
- Check Person Type if it applies to people, Group Type if it applies to groups, or both.
- Click Save & Close.

Then download the "CRM Record Type - {Record Type}" template from the Import component.
| Column name | Description |
|---|---|
| external_person_id, external_person_is_group, person_id | See the shared columns |
Relationships
A relationship connects two CRM records, for example a Sponsor and a Sponsored Child, or two spouses. With an opposite label, adding "Sponsored by" on one record automatically assigns "Sponsor of" on the other.
Add the relationship on the Relationship tab in CRM > Configuration before you import it. Then download the "CRM Relation Type - {Relationship}" template from the Import component. For the setup steps and a worked example, see Importing Relationships and Entities.
| Column name | Description |
|---|---|
| external_person_id, external_person_is_group, person_id | See the shared columns |
| related_external_person_id | The related person's external_id from the Person/Group data map |
| related_external_person_is_group | Set to 1 if the related person is a people group record |
| related_person_id | The Site Stacker CRM Person ID of the related person. Ignored if related_external_person_id is specified. |
| description | Description of the relationship |
.png)
.png)