Marketo Client Secret (required): This is service specific client secret.

You can give a name to your newly created connection and save it for later use

2. Click ‘New Transfer’ from my connections.

3. Select the desired target i.e ‘Leads’.

Supported target types are Lead, Activity, Lead by Static List, Member by Program, Campaign.

4. Configuration for Specific Targets

1. Bulk extract targets

Bulk extracts target are exported using Marketo Bulk Extract API.

Bulk extract have the following common configuration:

From date: Data that have createdAt or updatedAt filter after the specified date.

Fetch days: The To date is calculated using From day + Fetch days

Escape character: Marketo CSV file escape character

Quote character: Marketo CSV file quote character

Limitation:
– Bulk extract target preview shows only mock data.

1. Lead.

Lead data is exported using bulk extract. Some Marketo account have the updatedAt feature enabled for Lead, which allows bulk extract query to do incremental export by Lead. You can select the checkbox Use "updatedAt"? to filter by the updatedAt column.

2. Activity.

Activity data is exported using bulk extract. Marketo activity attributes are exported to the column attributes. This column is in JSON format.

Example of attributes

1. REST API targets

REST API targets are exported using Marketo REST API call.

1. Lead by static list.

Exported Lead data includes the column listId which contains the Lead list id.

2. Member by program.

Exported Lead data includes the column programId which contains the Lead list id.

3. Campaign.

Exported Marketo Campaign data.

4. Preview the table and the data to be imported.

5. Specify the target Database and Table to be imported. Select ‘Append’ or ‘Replace’. Select ‘processed_time’ as time-key for ‘Lead’.

6. Set a schedule if you want to. Import starts when the scheduled time comes, or starts immediately if you choose ‘Once now’.

7. Confirm that the job is running from Jobs page.

Untitled-3

The daily quota of Bulk Extract is 500MB for all methods of transfer. When this limit is reached, we recommend that you reduce the date range, or contact Marketo account manager and pay for additional space.

From the CLI: Step 0: Install ‘td’ command v0.11.9 or later

Set up config for the Marketo Leads

Guess and Preview are supported for Leads within List, Leads within Program.

Step 1: Create Seed Config File (seed.yml)

First, prepare seed.yml as shown in the following example for Marketo Leads. The parameters like account_id, client_id and client_secret are available at "Admin" > "Web Services" page in Marketo. You will use replace mode:

If needed, you can find more detailed information on getting access to your credentials in Marketo’s documentation: http://developers.marketo.com/blog/quick-start-guide-for-marketo-rest-api/

Step 2: Guess Fields (Generate load.yml)

Second, use connector:guess. This command automatically reads the target file and assesses(uses logic to guess) the file format.
and output to load.yml. The file load.yml will include a schema for Lead.

$ td connector:guess seed.yml -o load.yml

If you open up load.yml, you’ll see assessed file format definitions including, in some cases, file formats, encodings, column names, and types.

Then you can preview how the system will parse the file by using preview command.

$ td connector:preview load.yml

If the system detects your column name or type incorrectly, modify load.yml directly and preview again.

The connector:issue command assumes you have already created a database(td_sample_db) and a table(td_sample_table). If the database or the table do not exist in TD, this command will fail, so create the database and table manually or use --auto-create-table option with td connector:issue command to auto create the database and table:

You can assign a Time Format column to the "Partitioning Key" by using the "--time-column" option.

Scheduled execution

You can schedule periodic data connector execution for periodic Marketo import.
We take great care in distributing and operating our scheduler in order to achieve high availability.
By using this feature, you no longer need a cron daemon on your local data center.

For the scheduled import, Data Connector for Marketo imports all records.

Create the schedule

A new schedule can be created by using the td connector:create command.
The name of the schedule, cron-style schedule, the database and table where their data will be stored, and the Data Connector configuration file are required.

The `cron` parameter also accepts three special options: `@hourly`, `@daily` and `@monthly`. For more detail on Scheduled Jobs

By default, schedule is setup in UTC timezone. You can set the schedule in a timezone using -t or —timezone option. Note that --timezone option supports only extended timezone formats like ‘Asia/Tokyo’, ‘America/Los_Angeles’ etc. Timezone abbreviations like PST, CST are not supported and may lead to unexpected schedules.

List the Schedules

You can see the list of currently scheduled entries by td connector:list.