Register for a Free Account
Name
Email
Choose Password
Confirm Password

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 nameDescription
external_idRecord's ID from the external data source. Should be unique across all activity types.
subjectThe activity subject
body, notesThe activity body and the activity notes
dateThe date the activity took place (YYYY-MM-DD)
person_id, external_person_idThe person the activity is with. One of the two is required. To add more people, use the Activity People import.
from_person_idThe person who performed the activity (Site Stacker CRM Person ID). Ignored if from_external_person_id is specified.
from_external_person_idThe "from" person's external_id from the Person/Group data map
external_person_is_group, from_external_person_is_groupSet 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 nameDescription
external_activity_idThe ID passed to the Activity data map
external_person_idThe ID that was passed to external_id in the Person/Group data map
external_person_is_groupSee 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 nameDescription
idThe Person Note ID. Used to update existing notes.
from_person_idThe Site Stacker CRM Person ID of the "from" person. Ignored if external_from_person_id is specified.
typeNote type. This can be whatever note type you want.
subjectNote subject
bodyNote body (the full note for the CRM record)
importantMarks the note as important. 0=No, 1=Yes.
modelOptional. Links the note to another kind of record.
foreign_keyOptional. The ID of the record named in model.
external_idRecord's ID from the external data source
external_from_person_idThe "from" person's external_id from the Person/Group data map
external_from_person_is_groupSet 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 nameDescription
external_idRecord's ID from the external data source
labelThe import file label
import_pathThe 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.

  1. Go to CRM > Configuration and click the Entities tab.
  2. Click Add Entity Group, name it and click Save & Close.
  3. 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.
  4. Right-click the entity and click Manage Fields. Click Add to add each field that belongs to this entity.

    Manage Fields window with the Add / Edit Entity Field form

A template for each entity then appears on the Documentation tab of the Import component, named "CRM Entity - {Entity Group} - {Entity}".

Column nameDescription
idThe entity row ID. Used to update existing entity rows.
external_person_id, external_person_is_group, person_idSee the shared columns
external_idRecord's ID from the external data source
acl_tag_id, external_acl_tag_idOptional 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:

  1. Go to CRM > Configuration and click the Record Type tab.
  2. Click Add and name the record type.
  3. Check Person Type if it applies to people, Group Type if it applies to groups, or both.
  4. Click Save & Close.

    Add / Edit Record Type window

Then download the "CRM Record Type - {Record Type}" template from the Import component.

Column nameDescription
external_person_id, external_person_is_group, person_idSee 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 nameDescription
external_person_id, external_person_is_group, person_idSee the shared columns
related_external_person_idThe related person's external_id from the Person/Group data map
related_external_person_is_groupSet to 1 if the related person is a people group record
related_person_idThe Site Stacker CRM Person ID of the related person. Ignored if related_external_person_id is specified.
descriptionDescription of the relationship

Related guides