Using For Each Loop in SSIS for Invoice Integration from SQL Server to Microsoft D365 Sales Using KingswaySoft Connector for CRM: Part 3
SSIS Integration Map for Invoice Details from SQL Server to Microsoft CRM
Add a DFT to Integrate the Invoice Details in the Control Flow.
The Map after Completion looks as follows:
Add an OLEDB Source and configure it as following:
In our case we are Inner Joining Invoice and Invoice details Table based on OrderNumber and Invoice Details and Products Table based on ProductID. This will help us to retrieve the columns which are not provided in a single Table and are required for Integration of Invoice Details.
(Note: this might vary according to your scenario)
Click on Parameters and configure it as follows:
Add a derived column transformation to create a unique name for Invoice Details as an upsert criteria.
Add a CRM destination Block and configure it as follows:
We will use Upsert Criteria specified on Invoice Detail Unique Name for Integration of Invoice Details. The fields mapped are as following.
Add an OLE DB command transformation to update the Ported status to 1 indicating the Invoice details have been integrated.
Configure it as follows:
Add the remaining blocks for Custom Error Handling as explained in the Blog in Link:
This is the third part of the 4 part blog series.
Part 1/4: Using FOR EACH Loop with KingswaySoft Connector for CRM Invoice Integration.
Part 2/4: SSIS Integration Map for Invoice Header from SQL Server to Microsoft CRM
Part 3/4: SSIS Integration Map for Invoice Details from SQL Server to Microsoft CRM
Part 4/4: Delete Logic for Invoice in case of Incomplete Integration of Invoice details Logic: