Component family |
Business/Cloud |
|
Function |
The tMarketoOutput component |
|
Purpose |
The tMarketoOutput component |
|
Basic settings |
Schema and Edit |
A schema is a row description. It defines the number of fields to be processed and passed on Since version 5.6, both the Built-In mode and the Repository mode are Click Edit schema to make changes to the schema. If the
Click Sync columns to retrieve the schema from the |
|
|
Built-in: No property data is |
|
|
Repository: Select the Repository |
|
Endpoint address |
The URL of the Marketo Web server for the SOAP API calls |
|
Secret key |
Encrypted authentication code assigned by Marketo. To enter the secret key, click the […] button next to NoteContact Marketo Support via |
|
Client Access ID |
A user ID for the access to Marketo web service. NoteContact Marketo Support via |
|
Operation |
Options in this list allow you to synchronize lead data between
syncLead: This operation requests
syncMultipleLeads: This operation |
|
Columns Mapping |
Specify the corresponding columns in Marketo for the Note that the following two columns are
NoteBecause some column names in the Marketo database may contain |
|
De-duplicate lead record on email address |
Select this check box to de-duplicate and update lead records Deselect this check box to create another lead which contains the NoteThis check box will be displayed only when you select |
|
Batch Size |
The maximum batch size in synchronizing lead data in batch. NoteThis field will be displayed only when you select syncMultipleLeads from the Operation list. |
|
Timeout (milliseconds) |
Type in the query timeout (in milliseconds) on the Marketo Web NoteThe Job will stop when Timeout exception error occurs. |
|
Die on error |
This check box is selected by default. Clear the check box to skip |
Advanced settings |
tStatCatcher Statistics |
Select this check box to gather the Job processing metadata at a |
Global Variables |
NB_CALL: the number of calls. This is an After variable ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
This component is used as an output component, it requires an |
|
Limitation |
n/a |
The following scenario describes a five-component Job that inserts Lead records into
Marketo database and retrieves these records from Marketo database to a local file. Upon
completing the data accessing, the Job displays the number of relevant API calls on the
Run console.
-
Drop tMarketoOutput, tMarketoInput, tFileInputDelimited, tFileOutputDelimited and tJava from the Palette onto
the design workspace. -
Connect tFileInputDelimited to tMarketoOutput using a Row > Main
connection. -
Connect tMarketoInput to tFileOutputDelimited using a Row > Main
connection. -
Connect tFileInputDelimited to tMarketoInput using a Trigger > OnSubjectOk
connection. -
Connect tMarketoInput to tJava using a Trigger > OnSubjectOk
connection.
-
Double-click tFileInputDelimited to
define the component properties in its Basic
settings view. -
Click the three-dot button next to the File
name/Stream field to select the source file for data
insertion. In this example, it is
D:/SendData.csv. -
Click the three-dot button next to Edit
schema to set the schema manually. -
Click the plus button to add four columns: Id,
Email, ForeignSysPersonId and
ForeignSysType. Set the Type of Id to Integer and keep the rest
as default. Then click OK to save the
settings. -
Type in 1 in the Header field and keep the other settings as default.
-
Double-click tMarketoOutput to define
the component properties in its Basic
settings view. -
Click the Sync columns button to
retrieve the schema defined in tFileInputDelimited and fill the Endpoint address field with the URL of the Marketo Web
server. In this example, it is
https://na-c.marketo.com/soap/demo/demo1.Note that the URL used in this scenario is for demonstration purposes
only. -
Fill the Secret key field with encrypted
authentication code assigned by Marketo. In this example, it is
1234567894DEMOONLY987654321. -
Fill the Client Access ID field with the
user ID. In this example, it is
mktodemo1_1234567894DEMOONLY987654321. -
Select syncMultipleLeads from the
Operation list and type in the limit of
query timeout in the Timeout field. In this
example, use the default number: 600000.
-
Double-click tMarketoInput to define the
component properties in its Basic settings
view. -
From the Operation list, select
getLead. -
In Columns Mapping area, type in
test@talend.com in Columns in
Marketo column to set the Email column.Note that all the data used in this scenario is for demonstration
purposes only. -
From the LeadKey type list, select
EMAIL and fill the LeadKey value field with
test@talend.com. -
Keep the rest of the settings as the corresponding settings in tMarketoOutput.
-
Double-click tFileOutputDelimited to
define the component properties in its Basic
settings view. -
Click the three-dot button next to the File name
field to synchronize data to a local file. In this example, it is
D:/ReceiveData.csv. -
Click the Sync columns button and keep
the rest of the settings as default.
-
Double-click tJava to add code in its
Basic settings view. -
In the Code field, type in following
code to count the number of API calls throughout the data operations:123456System.out.println(("The Number of API calls for insertingdata to Marketo DB is:"));System.out.println((Integer)globalMap.get("tMarketoOutput_1_NB_CALL"));System.out.println(("The Number of API calls for data synchronizationfrom Marketo DB is:"));System.out.println((Integer)globalMap.get("tMarketoInput_1_NB_CALL"));