Quantcast
Channel: CodeSection,代码区,SQL Server(mssql)数据库 技术分享 - CodeSec
Viewing all articles
Browse latest Browse all 3160

Using Alternate Key to set Lookup in SSIS (KingswaySoft)

$
0
0

Alternate Keys which were introduced with CRM 2015 Update 1, gave us the ability to Upsert and Update records, by defining one or more fields as Alternate Key and use that field(s) instead of relying only on Primary Key.

Alternate Keys can also be used for setting or updating the lookup instead of GUID.

CDS\CRM Destination Component in KingswaySoft SSIS Integration Toolkit allows us the option of specifying the Alternate Key for updating the lookup field.

Suppose we have Contact entity with following Alternate Key defined in it


Using Alternate Key to set Lookup in SSIS (KingswaySoft)
Key1 on field last name Key2 on 2 fields emailaddress1 and last name

Within the CDS/CRM Destination Component Editor for the lookup field, click on ellipsis for the Text Lookup column. Here we have selected parent contact field inside Lead Entity.


Using Alternate Key to set Lookup in SSIS (KingswaySoft)

Inside Text Lookup Editor, select the option “Choose Target Field(s)”, in lookup method select Alternate Key and we will see both our alternate keys listed there.


Using Alternate Key to set Lookup in SSIS (KingswaySoft)
Key1 on field lastname
Using Alternate Key to set Lookup in SSIS (KingswaySoft)
Key 2 on emailaddress 1 and last name
Using Alternate Key to set Lookup in SSIS (KingswaySoft)

One thing I have observed that it doesn’t list the alternate key if it is defined by using more than 2 fields. Looks like it is by design.

Hope it helps..


Viewing all articles
Browse latest Browse all 3160

Trending Articles