Salesforce

How Do I Set Up Database Operations In the Data Mapper? (Magic xpi 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Set Up Database Operations In the Data Mapper? (Magic xpi 3.x)

This section provides information about the steps you need to perform when setting up database operations in the Data Mapper. The information provided here is generic for each operation. For specific information about how to write the SQL statements and how to make the mapping connections, see How Do I Create Data Mapper SQL statements and Make the Mapping Connections?.

Insert Operation

The steps below refer to the actions you would perform as part of an Insert operation.

  1. Define an XML file as the Source schema.

  2. Define a database as the Destination schema. Click Properties and then select Insert for the DB Operation.

  3. For the Destination schema, insert a valid Insert SQL statement based on the connected database.

  4. After you define the Source and Destination objects, you can proceed to the Data Mapper screen where you connect the information retrieved from the XML file to the Insert SQL statement.

Update Operation

The steps below refer to the actions you would perform as part of an Update operation.

  1. Define a schema for a database as the Source. The SQL statement in this case is “Select”.

  2. Define a schema for a database as the Destination. Click Properties and then select Update for the DB Operation.

  3. For the Destination schema, insert a valid Update SQL statement based on the connected database.

  4. After you define the Source and Destination objects, you can proceed to the Data Mapper screen where you connect the information retrieved from the Select SQL statement to the Update SQL statement.

Delete Operation

The steps below refer to the actions you would perform as part of a Delete operation.

  1. Define a schema for a database as the Source. The SQL statement in this case is “Select”.

  2. Define a schema for a database as the Destination. Click Properties and then select Delete for the DB Operation.

  3. For the Destination schema, insert a valid Update SQL statement based on the connected database.

  4. After you define the Source and Destination objects, you can proceed to the Data Mapper screen where you connect the information retrieved from the Select SQL statement to the Delete SQL statement.

Select Operation

The steps below refer to the actions you would perform as part of a Select operation.

  1. Define a schema for a database as the Source. The SQL statement in this case is “Select”.

  2. Define an XML file as the Destination schema.

  3. After you define the Source and target objects, you can proceed to the Data Mapper screen where you connect the information retrieved from the Select SQL statement to the XML elements.

Reference
Attachment 
Attachment