Import

The Import activity is used to import leads to an existing static list.

Note: You can use the Retrieve activity the check the status of the import operation.

General

The General tab has the following fields.

Field Module Property? Description
Name No Specify the name for the activity.
Connection Yes Click to select a Marketo shared resource.

If no matching Marketo shared resources are found, click Create Shared Resource to create one. See Creating a Marketo Connection for more details.

Time Out Yes Specify the amount of time in milliseconds to wait for executing the import operation.

The value in this field must be in the range 0 to 2147483647. A value of 0 or negative indicates the default value, 10000 milliseconds.

SyncMode No Select this check box to import leads synchronously.
Check Interval Yes Specify the time interval in milliseconds to check whether the import operation is completed. The default value is 20000.
Note: This field is displayed when the SyncMode check box is selected.

Description

Provide a short description for the activity.

Input

The Input tab has the following fields.

Field Data Type Description
ParamsImportToList
program

Name

string The name of the program containing the static list that the leads are imported to.
importFile

Header

string The column headers for the leads to be imported, including lead attributes and my token names.
importFile

Rows

string The comma separated values of the leads to be imported. One row per lead.
importList

Mode

string The mode for importing leads, UPSERTLEADS or LISTONLY.
  • UPSERTLEADS: Creates or updates leads and add them to a static list.
  • LISTONLY: Adds existing leads to a static list, skipping new leads.
listName string The name of the static list, which the leads are imported to.
clearList boolean Whether to clear the static list before importing leads, true or false.
  • true: Clears the static list before importing leads.
  • false: Appends the leads to the static list.
campaign

Name

string The name of the campaign where my token is used. The campaign must be within the specified program.

Output

The Output tab has the following fields.

Output Item Data Type Description
SuccessGetImportToListStatus/result
status string The status of the import operation.
startedTime dateTime The start time of the import operation. The returned value can be null.
endedTime dateTime The ended time of the import operation. The returned value can be null.
estimatedTime integer The elapsed time of the import operation. The returned value can be null.
estimatedRows integer The number of rows supposed to be imported during the operation. The returned value can be null.
rowsImported integer The number of rows imported during the operation. The returned value can be null.
rowsFailed integer The number of rows failed to be imported during the operation. The returned value can be null.
rowsIgnored integer The number of rows ignored during the operation. The returned value can be null.
import

Summary

string The summary of the import operation. The returned value can be null.

Fault

The Fault tab lists the exceptions that can be thrown by this activity.

Exception Description

MarketoException

The errors returned by Marketo.

MarketoPluginException

The errors returned by the plug-in.

MarketoConnection

Exception

The errors that occurred when establishing the web service connection between the plug-in and Marketo.