SuitePortal
User GuideSyncing Data

Enabling Syncs

Configure data synchronization from NetSuite to SuitePortal

Enabling Syncs

SuitePortal syncs data one-way from NetSuite to SuitePortal. Data flows from your NetSuite instance to SuitePortal's database via Map/Reduce scripts.

Prerequisites

  • NetSuite integration configured (see Integrating NetSuite)
  • SuiteBundle 581756 installed
  • Global Settings record configured in NetSuite

Sync Configuration

Each sync configuration defines what data to sync and how often.

Sync Config Properties

PropertyTypeDescription
namestringDisplay name for the sync
record_typestringNetSuite record type to sync
dataset_idstringTarget collection/dataset name
statusenumCurrent sync status
sync_frequencyenumHow often to run
cron_expressionstringCron schedule (if custom)
page_sizenumberRecords per batch (default varies)
max_records_per_syncnumberOptional limit per run

Sync Status Values

StatusDescription
activeSync runs on schedule
pausedSync is temporarily disabled
draftSync is not yet activated

Available Record Types

Record TypeLabelHas Line ItemsDataset
salesorderSales OrderYessale
invoiceInvoiceYesinvoice
purchaseorderPurchase OrderYespurchaseorder
quoteQuoteYessale
customerCustomerNocustomer
vendorVendorNovendor
contactContactNocontact
itemItemNoitem

Creating a Sync Configuration

  1. Navigate to Portal → Sync Configs
  2. Click Create Sync Config
  3. Select a Record Type
  4. Enter a Name for the sync
  5. Choose a Schedule (see Scheduling Syncs)
  6. Optionally add Custom Fields beyond core fields
  7. Set Status to active when ready
  8. Click Save

Core Fields

Each record type includes core fields that are always synced:

Common Core Fields (All Types)

FieldDescription
internalidNetSuite internal ID (required for idempotency)
lastmodifieddateLast modification timestamp

Entity Fields (Transactions)

FieldDescription
entityCustomer/Vendor internal ID
entityidEntity identifier

Transaction Line Items

FieldDescription
itemItem internal ID
quantityLine quantity
rateLine rate
amountLine amount
lineLine number

Custom Fields

Beyond core fields, you can configure additional fields to sync:

PropertyDescription
custom_fieldsAdditional header/body fields
custom_line_fieldsAdditional line item fields

Custom fields are specified by NetSuite field internal ID (e.g., custbody_my_field).

Sync Run Tracking

Each sync execution creates a SyncRun record:

PropertyDescription
statusrunning, completed, failed, or cancelled
triggered_bymanual, scheduled, api, or n8n
records_foundTotal records matched
records_syncedRecords successfully synced
records_failedRecords that failed
duration_msExecution time in milliseconds
pages_processedNumber of batches processed

Manual Sync

Trigger a sync manually:

  1. Navigate to Portal → Sync Configs
  2. Find the sync configuration
  3. Click Run Now
  4. Monitor progress in the sync run history

Next: Flagging Records for Sync