Scenario 1: Deleting data from the Account object - 6.1

Talend Open Studio for Big Data Components Reference Guide

EnrichVersion
6.1
EnrichProdName
Talend Open Studio for Big Data
task
Data Governance
Data Quality and Preparation
Design and Development
EnrichPlatform
Talend Studio

This scenario describes a two-component Job that removes an entry from the Account object.

Dragging and dropping as well as connecting the components

  1. Drop tSalesforceInput and tSalesforceOutput from the Palette onto the design workspace.

  2. Connect the two components together using a Row > Main link.

Configuring the components

Querying the content to be deleted

  1. Double-click tSalesforceInput to display its Basic settings view and define the component properties.

  2. From the Property Type list, select Repository if you have already stored the connection to the salesforce server in the Metadata node of the Repository tree view. The property fields that follow are automatically filled in. If you have not defined the server connection locally in the Repository, fill in the details manually after selecting Built-in from the Property Type list.

    For more information about how to create the salesforce metadata, see Talend Studio User Guide.

  3. In the Salesforce WebService URL field, use the default URL of the Salesforce Web service or enter the URL you want to access or select the Use an existing connection check box to use an established connection.

  4. In the Username and Password fields, enter your login and password for the Web service.

  5. Type in your intended query timeout in the Timeout (milliseconds) field. In this example, use the default number.

  6. From the Module list, select the object you want to access, Account in this example.

  7. From the Schema list, select Repository and then click the three-dot button to open a dialog box where you can select the repository schema you want to use for this component. If you have not defined your schema locally in the metadata, select Built-in from the Schema list and then click the three-dot button next to the Edit schema field to open the dialog box where you can set the schema manually.

  8. In the Query Condition field, enter the query you want to apply. In this example, we want to retrieve the clients whose names are sForce. To do this, we use the query: "name='sForce'".

  9. For a more advanced query, select the Manual input of SOQL query and enter the query manually.

Deleting the queried contents

  1. Double-click tSalesforceOutput to display its Basic settings view and define the component properties.

  2. In the Salesforce WebService URL field, use the default URL of the Salesforce Web service or enter the URL you want to access.

  3. In the Username and Password fields, enter your login and password for the Web service.

  4. Type in your intended query timeout in the Timeout (milliseconds) field. In this example, use the default number.

  5. From the Action list, select the operation you want to carry out. In this example we select Delete to delete the sForce account selected in the previous component.

  6. From the Module list, select the object you want to access, Account in this example.

  7. Click Sync columns to retrieve the schema of the preceding component.

  8. Press Ctrl+S to save your Job.

Executing the Job

  • Press F6 to execute the Job.

    Check the content of the Account object and verify that the sForce account(s) is/are deleted from the server.