Articles in this section

Mapper 1.0 field mapping settings

Field mapping settings control how Mapper 1.0 treats each mapped field: the data type, what happens when the source value is empty, how the value is produced, and when the mapping applies. This reference is for builders who configure import mappings and need to look up an option. To open the mapping panel first, see Configure import mapping in Mapper 1.0.

Open field settings

In the Edit mapping panel, select Settings settings-icon.png on the row you want to change.

Field settings

SettingDescription
Data type

The type of data the destination field expects: None, Boolean, Date, Number, Number array, String, or String array. integrator.io converts the source value to this type before it sends the record. For example, if the source sends the number 12 and the destination expects the string "12", set Data type to String. Mapper 1.0 converts values as follows:

  • Boolean: writes false for false, no, f (any case), and an empty value. Writes true for any other value, including 0 and 1.
  • Number: keeps only digits and the decimal point and drops every other character, including a minus sign. -3 is sent as 3, and 12.5kg as 12.5. To keep a signed value, leave Data type unset.
  • Number array and String array: write a single-element array. They don't split a comma-separated value. For example, "131490, 2186" becomes [1314902186]. To send several values from one text field, use a handlebars expression that produces JSON text. If Data type is unset, a source list passes through as a list.

For more conversion rules, see Data type validation reference. Mapper 2.0 uses the values as entered.

Discard if emptyWhen selected, the destination record doesn't include the field if the source field is empty. When cleared, integrator.io sends the empty value. You can't use Discard if empty with a custom default value. If you select both, integrator.io ignores the default value.
ImmutableNetSuite imports only. Prevents integrator.io from removing this field when it retries a failed record. See Immutable fields.
Field mapping typeHow the destination value is produced: Standard, Hard-Coded, Lookup, or Multi-Field. See Field mapping types.
Only perform mapping whenA condition that decides whether this mapping applies. Located in the Advanced section. See Only perform mapping when.

Immutable fields

When a record fails to import, integrator.io reads the destination application's error message. If the message names a single field as the cause, integrator.io removes that field and retries the record. This keeps one bad value from blocking the whole record.

For example, if the destination rejects a phone number such as 650-485-3937, integrator.io removes Phone and retries with the remaining fields.

Select Immutable on a field that must always be set, such as an email address or ID. If that field causes an error, integrator.io doesn't retry the record, and the record fails.

Field mapping types

TypeWhat it doesIndicator
StandardSends the source field's value to the destination field. This is the default.None
Hard-CodedSends the same value for every record.H
LookupRetrieves the value from another source or translates the source value.L
Multi-FieldBuilds the value from one or more source fields with a handlebars expression.M

A padlock appears next to each required destination field.

Standard

Standard mapping sends the value found in the source field to the destination field. If the source field is missing, empty, null, or undefined, integrator.io treats the value as not found and the import generates an error unless you set Action to take if value not found:

OptionResult
Use empty string as default valueSets the destination field to an empty string.
Use null as default valueSets the destination field to null.
Use custom default valueSets the destination field to the value you enter.

This setting is available for prebuilt and HTTP applications. It isn't available for NetSuite.

integrator.io also converts a default value by the row's Data type. Use null as default value writes null only when Data type is String or unset. Boolean writes false, Number writes 0, and the array types write an empty list.

Hard-coded

Hard-coded mapping writes the same value to the destination field for every record.

OptionResult
Use empty string as hardcoded valueWrites an empty string.
Use null as hardcoded valueWrites null.
Use custom valueWrites the value you enter in Enter default value. This is the default.

Lookup

Lookup mapping retrieves a value from a secondary source (dynamic search) or translates one value to another from a list you define (static lookup). To set one up, see Add a lookup to an import mapping.

Multi-field

Multi-field mapping builds one destination value from one or more source fields. For example, you can combine billing, mailing, and business address fields into a single billing address field, append text to a value, or extract the first characters of a value. It uses handlebars expressions.

SettingDescription
FunctionA helper such as AND, ADD, or AVG that transforms the field values.
FieldThe source fields to use. The list changes with the function you select.
ExpressionThe handlebars expression. It fills in from Function and Field, and you can edit it.
Action to take if value not foundUse empty string as default value, Use null as default value, or Use custom default value. Not available for NetSuite.

Only perform mapping when

Only perform mapping when limits a mapping to records that meet a condition. For example, to set a default sales representative only when you create a customer, set the condition to Creating a record on that field. This lets one import do work that would otherwise take two.

To set it, open the field's settings and select an option in the Advanced section.

OptionThe mapping applies
NoneAlways.
Source record has a valueWhen the source value is truthy: not false, empty, null, or undefined.
Look up finds a recordWhen the field's lookup finds a record and the value in its return field isn't empty.
Look up finds no recordsWhen the field's lookup finds no record, or the value in its return field is empty.
Creating a recordNetSuite only. When the import creates a record.
Updating a recordNetSuite only. When the import updates a record.
Destination record being updated does NOT already have a value for this fieldNetSuite only. When the record being updated has no value in this field.

Other applications offer a different set. An HTTP import shows only None, Look up finds a record, Look up finds no records, and Source record has a value. A NetSuite import shows all seven options.

NetSuite imports also offer Use as a key field to find existing lines in the field settings, for mapping to sublist lines.

Field mapping type indicators

A letter next to a mapped field shows its field mapping type.

IndicatorField mapping type
HHard-coded
LLookup
MMulti-field
NoneStandard