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 on the row you want to change.
Field settings
| Setting | Description |
|---|---|
| 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
For more conversion rules, see Data type validation reference. Mapper 2.0 uses the values as entered. |
| Discard if empty | When 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. |
| Immutable | NetSuite imports only. Prevents integrator.io from removing this field when it retries a failed record. See Immutable fields. |
| Field mapping type | How the destination value is produced: Standard, Hard-Coded, Lookup, or Multi-Field. See Field mapping types. |
| Only perform mapping when | A 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
| Type | What it does | Indicator |
|---|---|---|
| Standard | Sends the source field's value to the destination field. This is the default. | None |
| Hard-Coded | Sends the same value for every record. | H |
| Lookup | Retrieves the value from another source or translates the source value. | L |
| Multi-Field | Builds 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:
| Option | Result |
|---|---|
| Use empty string as default value | Sets the destination field to an empty string. |
| Use null as default value | Sets the destination field to null. |
| Use custom default value | Sets 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.
| Option | Result |
|---|---|
| Use empty string as hardcoded value | Writes an empty string. |
| Use null as hardcoded value | Writes null. |
| Use custom value | Writes 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.
| Setting | Description |
|---|---|
| Function | A helper such as AND, ADD, or AVG that transforms the field values. |
| Field | The source fields to use. The list changes with the function you select. |
| Expression | The handlebars expression. It fills in from Function and Field, and you can edit it. |
| Action to take if value not found | Use 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.
| Option | The mapping applies |
|---|---|
| None | Always. |
| Source record has a value | When the source value is truthy: not false, empty, null, or undefined. |
| Look up finds a record | When the field's lookup finds a record and the value in its return field isn't empty. |
| Look up finds no records | When the field's lookup finds no record, or the value in its return field is empty. |
| Creating a record | NetSuite only. When the import creates a record. |
| Updating a record | NetSuite only. When the import updates a record. |
| Destination record being updated does NOT already have a value for this field | NetSuite 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.
| Indicator | Field mapping type |
|---|---|
| H | Hard-coded |
| L | Lookup |
| M | Multi-field |
| None | Standard |