Lead Read

Overview

You can use the Lead Read Snap to query the Lead database. Lead database objects include the following:

  • Leads
  • Companies
  • Named Accounts
  • Named Account List
  • Static List
  • Usage
  • Opportunities
  • Opportunity Roles
  • Sales Persons
  • Custom Objects
  • Activities
  • List and Program Membership

Marketo Lead Read Overview

Prerequisites

Limitations

  • Daily quota: 50,000 API calls per day.
  • API rate limit: 100 calls per 20 seconds. If exceeded, the API responds with a 606 error code and the Snap fails.
  • Concurrency limit: 10 concurrent API calls.
  • Marketo Snaps do not support some special characters (for example, (๐––๐–—๐–˜๐–ฌ๐–ญ๐–ฎ๐—•๐—–๐˜ง๐˜จ๐˜ฉ๐›€๐›๐›‚๐›ƒ๐›„๐›…๐›†๐›‡,๐–—๐–˜๐–ฌ๐›Œ๐›—๐›˜๐›™๐›ด)).

Known issues

  • The Get Lead Activities REST API call fails while getting activities for the first page, because it expects a nextPageToken on the first page.
  • If the API rate limit of 100 calls per 20 seconds is exceeded, the API responds with a 606 error code and the Snap fails.
  • Marketo Snaps do not support some special characters (for example, (๐––๐–—๐–˜๐–ฌ๐–ญ๐–ฎ๐—•๐—–๐˜ง๐˜จ๐˜ฉ๐›€๐›๐›‚๐›ƒ๐›„๐›…๐›†๐›‡,๐–—๐–˜๐–ฌ๐›Œ๐›—๐›˜๐›™๐›ด)).
  • The Marketo Lead Read Snap has the checkbox Read All Pages, which does not apply to all the commands. A few commands (such as Get Paging Token, Member of List) do not support pagination due to the API limitation.

Snap views

Type Description Examples of upstream and downstream Snaps
Input

This Snap has at most two document input views.

The first input view accepts the command to query the Lead database.

The second input view (optional) can be used to pass additional query parameters.

Output

This Snap has at most one document output view.

A document containing the lead records based on the input command.

Learn more about Error handling.

Snap settings

Note: Learn about the common controls in the Snap settings dialog.
Field/Field set Description
Label*

String
Specify a unique name for the Snap. Supports expressions.

Default value: Lead Read

Command*

String/Expression/ Suggestion

Specify the command to query the Lead database to retrieve leads. Alternatively, click the Suggestion icon to fetch a list of commands.

Note: Some commands require specific data in the input view. In such cases, place the Mapper Snap as an upstream Snap, validate the pipeline and note the Target Schema in Mapper Snap. Refer to the Marketo Lead Database document for details of each command.

Example:

  • getLeadsByFilterType
  • getLeadById
  • getLeadPartitions
  • describeLeadFields

For a complete list of supported commands, refer to the Marketo Lead API documentation.

Query Parameters

Use this fieldset to define the name and value for query parameters that are passed with the lead command.

Note:
  • This field set only supports pipeline parameters and does not support the upstream values.
  • Ensure that the query parameters are unique and not defined in both input documents and properties.
Name*

String/Expression

Specify the name of the query parameter for retrieving leads.

Example:

  • filterType
  • filterValues
  • fields
  • batchSize
  • nextPageToken
Value

String

Specify the value for the query parameter for retrieving leads.

Example:

  • email (for filterType)
  • [email protected] (for filterValues)
  • id,email,firstName,lastName (for fields)
  • 300 (for batchSize)
Read All Pages

Checkbox

Select this checkbox to retrieve all pages of results when the Marketo API returns paginated responses.

Note: This checkbox is not available for the Get Pagination Token command.

Default value: Deselected

Timeout (seconds)

Integer/Expression

Specify the time in seconds to wait for a response from the Marketo server. A value of zero disables the timeout.

Default value: 0

Number of Retries

Integer/Expression

Specify the number of attempts the Snap must make in case of connection failure or timeout.

Default value: 0

Retry Interval (seconds)

Integer/Expression

Specify the minimum number of seconds the Snap must wait before each retry attempt.

Default value: 1

Snap execution

Dropdown list
Choose one of the three modes in which the Snap executes. Available options are:
  • Validate & Execute. Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.
  • Execute only. Performs full execution of the Snap during pipeline execution without generating preview data.
  • Disabled. Disables the Snap and all Snaps that are downstream from it.

Default value: Validate and Execute

Examples

Troubleshooting

Error Reason Resolution
MAX RATE LIMIT '100' EXCEEDED WITHIN '20' SECS'. When a number of Pipelines run in parallel, the number of calls made within 20 seconds exceeded 100. Refer to the Marketo documentation for resolution.
Concurrency Limit: Maximum of 10 concurrent API calls. The concurrent API calls must have exceeded 10 calls. Ensure to avoid more than 10 concurrent API calls.
TOTAL MEMBERSHIP SIZE EXCEEDS THE LIMIT ALLOWED (100000) FOR THE FILTER. The number of program members exceeds 100,000.

Set the filter such that the Snap can fetch only less than 100,000 records.

Refer to Program Members in the Marketo documentation for more details.

Daily quota limit of API calls exceeded. Most subscriptions are allocated 50,000 API calls per day (which resets daily at 12:00 AM CST).

Daily Quota: The maximum number of allocated API calls per day for most subscriptions is 50,000.

Refer to Marketo documentation for best practices.

1003, Too many results match the filter in case the Get Leads by Filter Type data is greater than 1000. Marketo Get Leads by Filter Type command will fail if the lead filter is greater than 1000.

The Lead filter value must be lower than 1000.

Refer to Leads documentation for more information.

Tip: Learn more about all Marketo-related errors and exceptions: Error Code page.