Include and retrieve a lead in Marketo

This example Pipeline demonstrates how we can include a lead to the Lead database and retrieve that lead from the Lead database. We use the Lead Write and Lead Read Snaps to accomplish this task.

Initially, we pass the following required lead values and account name in the Pipeline as key-value parameters.

Key Value
MarketoAccountName DG_Marketo_Account
FirstName Mary
Gender Female
LastName Smith

Create a lead and insert it into the Leads database

We begin with mapping the lead information (defined in the Pipeline parameters) using the Mapper Snap. Upon validation, we see the lead information in the output preview of the Snap.

Mapper Configuration


Mapper Snap configuration

Mapper Output


Mapper Snap output

Configure the Lead Write Snap to insert the lead information into the Lead database. Upon validation, we see a confirmation of the lead created in the Lead database.

Lead Write Configuration


Lead Write Snap configuration

Lead Write Output


Lead Write Snap output

Query and retrieve a lead from the Lead database

Here, we map the information to a Lead Read Snap, which is used to query and retrieve the lead from the Lead database.

To this end, we configure the Mapper Snap to set the target path to have the Lead ID. Upon validation, we see the output with lead ID information.

Mapper Configuration


Mapper Snap configuration for Lead ID

Mapper Output


Mapper Snap output with Lead ID

Configure the Lead Read Snap to retrieve the lead information by the Lead ID.

Lead Read Configuration


Lead Read Snap configuration

Lead Read Output


Lead Read Snap output
To successfully reuse pipelines:
  1. Download and import the pipeline into SnapLogic.
  2. Configure Snap accounts as applicable.
  3. Provide pipeline parameters as applicable.