Skip to main content

Sync contacts and customers with NetSuite

Sync NetSuite contacts and customers with Marketing, choose the sync direction and master system, map fields, and filter records with SuiteQL.

Written by Bartlomiej Rekosiewicz

Set up the integration to sync contacts and customer entities between NetSuite and Marketing.


Before you start

  • You must have connected NetSuite to Marketing and configured your sync settings. Learn how in Connect NetSuite to Marketing.

  • You must have chosen whether to sync opt-in and opt-out status. Learn how in Sync opt-in and opt-out status with NetSuite.


Sync contacts

  1. For Contact syncing, expand the Sync contact data drop-down menu and choose either Yes (to sync contacts) or No (not to sync).

  2. Select Next.

  3. To choose the direction that you sync contact data, expand the Contact sync option drop-down menu, then choose the direction you want to sync contact data.

    • Bi-directional: Contact data is synced from both NetSuite and Marketing.

    • From NetSuite to Marketing: Contact data is synced only from NetSuite to Marketing.

    • From Marketing to NetSuite: Contact data is synced only from Marketing to NetSuite.

  4. When syncing data, the integration must know which system holds the master data initially. If conflicting data is found in the initial sync, it takes the data from the master system and overwrites the other system.

  5. Expand the Master system drop-down menu, then choose your master system.

    • NetSuite: NetSuite data overwrites any conflicting records in Marketing during the initial sync.

    • Marketing: Marketing data overwrites any conflicting records in NetSuite during the initial sync.

    • ⚠️ You must choose the correct master system, or you will lose data.

  6. Select Next.


Contact field mapping

You can map fields from a Marketing data field to a NetSuite field, and we automatically reverse these to map the other way when required.

In addition to the NetSuite entities fields and custom fields, we also list some calculated fields which are indicated by the encapsulating [[ ]], such as [[ Firstname Lastname ]].

These Marketing data fields must be mapped:

  • EMAIL

  • FIRSTNAME

  • LASTNAME

You should map the following NetSuite fields if you want to use or set them:

  • Category (category) - to a text field

By default, we pre-populate the minimum required fields that need mapping. We recommend only mapping fields you want to use in Marketing rather than all fields on the entity.

To set up field mapping:

  1. On the Contact field mappings, use the drop-down menus to map your Marketing data fields to your NetSuite contact fields.

  2. Your mappings are tested to ensure the minimum required fields are mapped. If an issue is shown, adjust your mappings to correct this.

  3. Once testing is successfully completed, select Next.

If you need to filter to a subset of contacts

Important

These steps must be performed by a developer.

The integration uses SuiteQL to access your NetSuite data, and we automatically filter for customer entities that have an email and are not duplicates. Optionally you can add your own filters if you need to limit the data further.

  1. For Contacts SuiteQL filter, enter additional filter criteria, using SuiteQL WHERE clause syntax against the contacts table (c).

    • The filter will be something like BUILTIN.DF(c. {The field id} ) = ' {Value to filter on} ' for example:

      • c.country = ‘US’

      • BUILTIN.DF(c.myCustomField) = ‘Region A’

    • If you specify a filter, it is tested and must work before you can proceed.

  2. Select Next.


Data alignment

The integration can align the contact data from the master system to the other system when first created. This can be useful to ensure your data is fully populated in the non-master system.

However, the master system's data will overwrite any conflicting data in the non-master system.

Expand the Initial contact data alignment drop-down menu, and choose either Yes or No.

  • No: Only data changed from this point is synced. No historic data is synced.

  • Yes: All data from the master system is synced to the non-master system.

Warning

You must choose the correct option, or you will lose data.


Sync customer data

In this section we set up the integration to sync customer data with NetSuite. Customer entities in NetSuite includes customers, prospects and leads.

  1. For Customer syncing, expand the Sync customer data drop-down menu and choose either Yes (to sync) or No (not to sync).

  2. Select Next.

  3. To choose the direction that you sync customer data, expand the Contact sync options drop-down menu, then choose the direction you want to sync customer data.

    • Bi-directional: Customer entity data is synced from both NetSuite and Marketing.

    • From NetSuite to Marketing: Customer entity data is synced only from NetSuite to Marketing.

    • From Marketing to NetSuite: Customer entity data is synced only from Marketing to NetSuite.

  4. When syncing data, the integration must know which system holds the master data initially. If conflicting data is found in the initial sync, it will take the data from the master system and overwrite the other system.

    • Expand the Master system drop-down menu, then choose your master system.

      • NetSuite: NetSuite data overwrites any conflicting records in Marketing during the initial sync.

      • Marketing: Marketing data overwrites any conflicting records in NetSuite during the initial sync.

    • ⚠️ You must choose the correct master system, or you will lose data.

  5. Select Next.

  6. For Customer types to sync, you can choose between People, Companies (B2B) or both.

    • If you choose to sync Companies then you must ensure you have custom data fields available in Marketing to map the NetSuite fields isPerson and Companyname to.

    • For Customer stages to sync, you can choose the stages you want to sync customer data for. Choose between Prospects, Leads, and Customers.

  7. Select Next.


Customer default statuses

  1. For each contact entity type (Prospect, Lead and Customer) you must choose a default status to set on the record.

    • Expand the relevant drop-down menu, then choose the default status you want to apply.

  2. Select Next.


Customer default category

Earlier versions of NetSuite allowed leads, prospects and customers to be created without providing a value for their Category. However, later versions made this a required field. Therefore, if the integration needs to update the opt-in or opt-out status for a record without a category, it must apply a default category, or it's unable to update.

  1. Expand the Default category drop-down menu, then choose a default category.

  2. Expand the Use default category when missing drop-down menu, then choose whether or not the integration is allowed to apply the default category when required:

    • Yes: The default category is applied when required.

    • No: The update is skipped if no category is present on the record.

  3. Select Next.


Customer data alignment

The integration can align the customer entity data from the master system to the other system when first created. This can be useful to ensure your data is fully populated in the non-master system. However, the master system's data will overwrite any conflicting data in the non-master system.

Expand the Initial contact data alignment drop-down menu, and choose either Yes or No.

  • No: Only data changed from this point is synced. No historic data is synced.

  • Yes: All data from the master system is synced to the non-master system.

⚠️ Warning

You must choose the correct option, or you will lose data.


Customer field mapping

You can map fields from a Marketing data field to a NetSuite field, and we automatically reverse these to map the other way when required. In addition to the NetSuite entities fields and custom fields, we also list some calculated fields which are indicated by the encapsulating [[ ]], such as [[ Firstname Lastname ]].

These Marketing data fields must be mapped:

  • Email

  • First name

  • Last name

If syncing companies then the following NetSuite fields must be mapped:

  • Company name - to a text field.

  • Is individual - to a Yes/No field.

You should map the following NetSuite fields if you want to use or set them:

  • Category - to a text field.

  • Entity status - to a text field.

By default, we pre-populate the minimum required fields that need mapping. We recommend only mapping fields you want to use in Marketing rather than all fields on the entity.

To set up field mapping:

  1. On the Customer field mappings, use the drop-down menus to map your Marketing data fields to your NetSuite customer fields.

  2. Your mappings are checked against the required minimum mappings. If an issue is shown, adjust your mappings to correct this.

  3. Select Next.

If you need to filter to a subset of customers

⚠️ Important

These steps must be performed by a developer.

The integration uses SuiteQL to access your NetSuite data, and we automatically filter for contacts entities that have an email and are not duplicates. Optionally you can add your own filters if you need to limit the data further.

  1. For Contact's SuiteQL filter, enter additional filter criteria, using SuiteQL WHERE clause syntax against the customers table (c).

    • The filter will be something like BUILTIN.DF(c. {The field id} ) = ' {Value to filter on} ' for example:

      • c.country = ‘US’

      • BUILTIN.DF(c.myCustomField) = ‘Region A’

    • If you specify a filter, it is tested and must work before you can proceed.

  2. Select Next.


Next steps

Sync products and orders from NetSuite

Did this answer your question?