Marketo REST Connector Guide > Mappings and Mapping Configuration Tasks with Marketo > Marketo Mapping Configuration Task Example
  

Marketo Mapping Configuration Task Example

You work for a marketing organization and business analysts in your organization want to export all Marketo lead activities. You want to review the lead activities in an analytics tool.
Configure a Mapping Configuration task to use the insert operation. You use the following objects in the Marketo mapping:
Source object
The source object for a Mapping Configuration task is a Marketo lead. Use the Marketo connection to connect to Marketo and read data from Marketo. The lead object is a single source in the Mapping Configuration task.
Specify the Activity Type IDs as 12,13 and the Since Date Time as 2015-08-26T10:00:00+0530 in the advanced source properties of the Mapping Configuration task.
Target object
Use the .csv file as the target object in the Mapping Configuration task. The target in a Mapping Configuration task is a flat file. The target includes the activityId, activityDate, activityTypeId, primaryAttributeValueId, primaryAttributeValue, attributeName, attributeValue, and id fields.
Mapping
Map the fields of the Marketo lead source to the flat file target.
The following image shows the Marketo mapping:
The mapping contains the Marketo lead source object and the flat file target object.
The following image shows the mapped fields of Marketo source with the flat file target object:
You can view the source fields mapped with the target fields.
When you run the mapping, the Secure Agent writes the lead activities to the flat file.
The following image shows the lead activities that the Secure Agent writes based on the fields you mapped in the Mapping Configuration task:
You can view the fields that the Secure Agent writes to Marketo.