In this Article
You can use the Asset Read Snap to query the Asset database. Marketo assets include:
Folders
Programs
Emails
Email Templates
Landing Pages
Landing Page Templates
Snippets
Forms
Tokens
A valid account with the required permissions. For more info, see Roles and Permissions.
Works in Ultra Pipelines.
|
If the API rate limit of 100 calls per 20 seconds exceed, the API responds with a 606 error code and the Snap fails.
The Asset Read Snap does not fetch existing data in Marketo database with special characters and displays warning as “No assets found for the given search criteria”
Marketo Snaps do not support some special characters (for example, (𝖖𝖗𝖘𝖬𝖭𝖮𝗕𝗖𝘧𝘨𝘩𝛀𝛁𝛂𝛃𝛄𝛅𝛆𝛇,𝖗𝖘𝖬𝛌𝛗𝛘𝛙𝛴
).
Input/Output | Type of View | Number of Views | Examples of Upstream and Downstream Snaps | Description |
---|---|---|---|---|
Input | Document |
|
| Command to query the Asset database.
|
Output | Document |
|
| A document containing the record on the basis of the input command. |
|
Field Name | Description | ||
---|---|---|---|
Label* | Specify a name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your Pipeline. Default Value: Asset Read | ||
Command* | Specify the command to query the Asset database to retrieve the desired records. Alternatively, click the Suggestion icon to fetch a list of commands and select a command. Some commands require specific data in the input view. In such cases, place the Mapper Snap as an upstream Snap Some commands require specific data in the input view. In such cases, place the Mapper Snap as an upstream Snap Default Value: N/A. | ||
Query Parameters | You can use this fieldset to define the name and value for query parameters on request.
| ||
Name | Specify the name of the query parameter for retrieving assets. Default Value: N/A | ||
Value | Specify the value for the query parameter for retrieving assets.
Default Value: N/A | ||
Snap Execution | Select one of the three following modes in which the Snap executes:
Default Value: Validate & Execute |
This example Pipeline demonstrates how we can retrieve a form from the Asset database using the Asset Read Snap.
Initially, we configure the Asset Read Snap to retrieve data using the Get Folders Command field and validate the Snap.
Input |
---|
We have a set of commands which we can see as a list when we click on the Suggestion icon.
Suggestion for Commands |
---|
Upon validation, we see the following data (folders from Asset database) in the output preview of the Snap.
Output |
---|
This example Pipeline demonstrates how to retrieve emails from the Asset database using the Asset Read Snap without specifying the offset value in the Query Parameters fieldset.
Initially, configure the Asset Read Snap to fetch emails using the Get Emails in the Command field.
On validation, you can see the following data (emails from the Asset database) in the output preview of the Snap. The output displays the results from the first record.
This example Pipeline demonstrates how to get emails by specifying an offset value.
Configure the Asset Read Snap to retrieve emails using the Get Emails Command field and validate the Snap. Specify the offset value in the Query Parameters field as 10.
On validation, you can see the following data (emails from the Asset database) in the output preview of the Snap. Observe that the output displays the results from the 11th record.
This example Pipeline demonstrates how to get emails by specifying an offset and maxReturn values.
Configure the Asset Read Snap to retrieve emails using the Get Emails Command field and validate the Snap. Specify the offset value in the Query Parameters field as 10 and the maxReturn value as 10.
On validation, you can see the following data (emails from the Asset database) in the output preview of the Snap. Observe that the output displays the results from the 11th record to the 20th record.
Important Steps to Successfully Reuse Pipelines
|