470 likes | 550 Views
Module 4: Data Synchronization Service. Module Objectives. After completing this module, you will be able to: Explain the purpose of the data synchronization service. Module Objectives. After completing this module, you will be able to: Explain the purpose of the data synchronization service
E N D
Module Objectives After completing this module, you will be able to: • Explain the purpose of the data synchronization service
Module Objectives After completing this module, you will be able to: • Explain the purpose of the data synchronization service • Define when to use the data synchronization service
Module Objectives After completing this module, you will be able to: • Explain the purpose of the data synchronization service • Define when to use the data synchronization service • Configure data synchronization task options
Module Objectives After completing this module, you will be able to: • Explain the purpose of the data synchronization service • Define when to use the data synchronization service • Configure data synchronization task options • Build, test, and run a data synchronization task
Data Synchronization Service Overview Synchronizes data between source and target
Data Synchronization Service Overview Synchronizes data between source and target Examples: Read leads from file and write to Salesforce
Data Synchronization Service Overview Synchronizes data between source and target Examples: Read leads from file and write to Salesforce Find new account records in ERR system and insert them into Salesforce
Data Synchronization Service Overview Synchronizes data between source and target Examples: Read leads from file and write to Salesforce Find new account records in ERR system and insert them into Salesforce Find modified contact records in Salesforce and update them in your ERP system
Data Synchronization Operations • A data synchronization task performs one of the following operations: • Insert • Update • Upsert (Update or Insert) • Delete
Operation: Insert • All source rows are inserted into target
Operation: Insert • All source rows are inserted into target • Ideal Use: One-time or initial data load
Operation: Insert • All source rows are inserted into target • Ideal Use: One-time or initial data load • Risk of duplicate records in the target
Operation: Insert SOURCE A D E F
Operation: Insert SOURCE TARGET A D E F A B C D
Operation: Insert END RESULT Duplicate Records SOURCE TARGET A D E F A B C D A A B C D D E F
Operation: Update • Updates rows in the target that exist in the source
Operation: Update • Updates rows in the target that exist in the source • If a row in the source does not exist in the target, that row fails
Operation: Update SOURCE A1 D1 E F
Operation: Update SOURCE TARGET A1 D1 E F A2 B C D2
Operation: Update END RESULT SOURCE TARGET A1 D1 E F A2 B C D2 A1 B C D1 E & F are not in the target
Operation: Upsert (Update or Insert) • Updates all rows in the target that exist in the source
Operation: Upsert (Update or Insert) • Updates all rows in the target that exist in the source • Inserts all new source rows in to the target
Operation: Upsert (Update or Insert) • Updates all rows in the target that exist in the source • Inserts all new source rows in to the target • Not supported for flat file target
Operation: Delete • Deletes all rows from target that exist in the source
Configuring a DSS Task: Source Supported sources: Single flat file
Configuring a DSS Task: Source Supported sources: Single flat file Database table
Configuring a DSS Task: Source Supported sources: Single flat file Database table Salesforce object
Configuring a DSS Task: Source Supported sources: Single flat file Database table Salesforce object Custom Source object
Configuring a DSS Task: Source Supported sources: Single flat file Database table Salesforce object Custom Source object Up to five related database tables or Salesforce objects
Configuring a DSS Task: Target Supported targets: Single flat file Database table Salesforce object
Salesforce Archived/Deleted Rows Option • For Salesforce sources only • Option to include archived and deleted rows • For insert and update operations, includes deleted and archived Salesforce data
Mapping Fields • Fields with similar names are automatically matched
Mapping Fields • Fields with similar names are automatically matched • Drag and drop source to target fields
Mapping Fields • Fields with similar names are automatically matched • Drag and drop source to target fields • Map fields with compatible data types (or use field expression to convert)
Mapping Fields • Fields with similar names are automatically matched • Drag and drop source to target fields • Map fields with compatible data types (or use field expression to convert) • Always validate the mapping!
Field Information • The following icons display on the field mapping page: • Primary Key – indicates that field is primary key for object
Field Information • The following icons display on the field mapping page: • Primary Key – indicates that field is primary key for object • External ID – indicated that field is external ID for object (Salesforce.com only)
Field Information • The following icons display on the field mapping page: • Primary Key – indicates that field is primary key for object • External ID – indicated that field is external ID for object (Salesforce.com only) • Non-null – indicates that field cannot contain a null value, and must be populated on insert
Important Note about Agents • Only one agent per task
Important Note about Agents • Only one agent per task • For SaaS -> SaaS connection, you must specify agent (Step 6 of wizard – Agent Details section)
Changing Task End Points • Be sure to refresh Fields • May need to clear the mapping • Validate mapping
Instructor Demo: Building a Data Synchronization Task • Business Scenario: • You have a CSV file that contains account data that you wish to import into Salesforce. • Your instructor will demonstrate: • How to create a data synchronization task. • How to load data from a CSV file into Salesforce.
Summary This module showed you how to: • Create a data synchronization task
Summary This module showed you how to: • Create a data synchronization task • Configure data synchronization task options – including mapping fields.
Summary This module showed you how to: • Create a data synchronization task • Configure data synchronization task options – including mapping fields. • Verify and run a data synchronization task.
Lab 1: Building a Data Synchronization Task • Business Scenario: • You have a CSV file that contains a list of customers. You wish to import these into Salesforce as accounts . • In this lab, you will: • Build and configure a data synchronization task. • Run the task and validate results in Salesforce.