Lookup Block Example

This Lookup Block example illustrates migrating Leads from Salesforce into Accounts in a SQL database. For Accounts that exists in SQL, the Map updates those records with the Lead data from Salesforce. For Accounts that do not exist in SQL, the Map creates those records. In addition, the Map replaces the Salesforce Lead address information with the Salesforce Account address in the SQL Account record as TIBCO Scribe® Online processes each record.

In this scenario, the Lookup Block matches a Source Lead record with a Source Account record based on a matching field. The Map uses the results of the original Query and the results of the Lookup Block to update an existing Target Account record or create a Target Account record.

Lookup Block Example Block Configuration

Review the configuration information for each Block in the Map to understand how the Lookup Block is used in this example.

Step 1: Query Block

Step 2: For Each Result Block

Step 3: Lookup Block

Step 4: If/Else Block

Step 5: Update Block

Step 6: Create Block

Related Topics

Lookup Block