Import characteristics
Import characteristics are properties you use to control and describe an import with the Bulk API.
The following characteristics are required:
-
name(string): The name of this import (maximum 100 characters). -
identifierFieldName(string): The field which will be used to identify the entity. Must be a string value, at least 1 character and at most 100 characters long. The following field types are not supported:- Large text
- Date
- Boolean
The following characteristics are optional:
-
isSyncTriggeredOnImport(boolean): Whether a sync is automatically created when uploading sync action data. If you set it totrue, a sync will be created upon uploading sync action data; whereas, a sync will not automatically be created if setting it tofalse. If the property is not set, a sync will not automatically be created when uploading data andisSyncTriggeredOnImportwill not be returned. -
dataRetentionDuration(duration): The length of time unsync'd data should remain in the staging area. Bulk API uses the ISO-8601 standard for specifying all durations. Valid values are anything from PT1H (1 hour) to P14D (2 weeks). This setting will default to P7D (7 days) if not explicitly set during import definition creation. -
autoDeleteDuration(duration): The length of time before the sync action definition will be automatically deleted. Bulk API uses the ISO-8601 standard for specifying all durations. The minimum duration is PT1H (1 hour) and the maximum duration is P365D (365 days). If the property is not set, automatic deletion will not occur andautoDeleteDurationwill not be returned. This is typically used for one-time-use sync action definitions. -
importPriorityUri(string): Sets the priority of the data to import. It must reference an existing/imports/priorities/{id}URI. If the property is not set, the default "Bulk API" import priority will be used. To see the list of the available priorities, use the Retrieve a list of import priorities endpoint. Data import priority compares new data to existing data, then determines whether to update contact data depending on the source. If you are not familiar with how Eloqua handles data import priorities, see Data import priority for more information.In the majority of cases, you will want to use the default "Bulk API" import priority and not specify an
importPriorityUri. -
updateRule(string): Indicates whether to update values in the Eloqua database from values imported with this import definition.updateRulewill only be returned if included in the create or update definition request, andalwaysis the default ifupdateRuleis not included in definition creation or update. The available options are:always: Always updateifNewIsNotNull: Update if the new value is not blankifExistingIsNull: Update if the existing value is not blankuseFieldRule: Use the rule defined at the field level
-
isUpdatingMultipleMatchedRecords(boolean): When set totrue, if Eloqua finds multiple matching records for theidentifierFieldName, Eloqua will update all of the records that match. If set tofalse, Eloqua updates based on its internal algorithm.isUpdatingMultipleMatchedRecordsis always returned, andfalseis the default ifisUpdatingMultipleMatchedRecordsis not included in definition creation or update. For contact imports, theisUpdatingMultipleMatchedRecordsproperty must be set tofalsein order to updateContact.Field(C_EmailAddress). -
importRule(string): Indicates if records are created & updated, created only, or updated only for Contact and Account imports.importRulewill only be returned if included in the create or update definition request, and upsert behavior,createAndUpdate, is the default ifimportRuleis not included in definition creation or update. The available options are:createAndUpdate: Create and update (upsert)updateOnly: Records are only imported if there is a match onidentifierFieldNamecreateOnly: Records are only imported if there is not a match onidentifierFieldNameand or, for contacts only, Email Address
-
nullIdentifierFieldName(boolean): When set totrue, theidentifierFieldNamewill be nulled when performing an account or contact import; whereas, theidentifierFieldNamewill not be nulled when setting it tofalse. If the property is not set, theidentifierFieldNamewill not be nulled andnullIdentifierFieldNamewill not be returned. -
updateRuleByField(object): Indicates whether to update values in the Eloqua database from values imported with this import definition by field. Each pair is a field name mapped to a rule type. If you do not specify anupdateRuleByField, or leave a field out ofupdateRuleByField, the rule type defaults to the rule set withupdateRule. The available options are:always: Always updateifNewIsNotNull: Update if the new value is not blankifExistingIsNull: Update if the existing value is not blankuseFieldRule: Use the rule defined at the field level