web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

lookup mapping - ssis

(0) ShareShare
ReportReport
Posted on by

I am trying to move account entity from sources to destination both using  crm online instance.But i have few doubt & trouble to make a upsert operation.

1.how make relationship mapping for lookup fields.

2.as account is related to contact,while making upsert operation is it possible to create a new contact.(if the contact is not present)

in certain lookup field if the record is not created  it may cause some error.so how to map and create parent child records are any other relationship entity record in crm  using ssis (kingwaysoft). 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    prt33k Profile Picture
    6,907 on at

    1. You need to map the uniqueidentifier of the entity with the lookup field.

    2 No. Upsert applies to primary entity, not to referential entity.

    So usually we create a parent record and once the GUID of parent record is available we then proceed with child record creation with guid of parent record mapping to lookup field.

    CRM 2016 also has alternate key concept where if a alternate key is defined, then you can use that instead on uniqueidentifier but then we need to have alternate key first.

  • ganeshm Profile Picture
    on at

    thanks for your fast reply,

    i tried to override my lookup value to the destination crm,but i cant find any option to do that.

    In my scenario i need change my owner name ,where this new owner name present only in the destination how to override the value of this lookup field.

  • Verified answer
    prt33k Profile Picture
    6,907 on at

    Hi Ganesh,

    If you know the GUID of the user in destination then you can create a derived column and map that to the owner lookup..something like this:

    1856.10.PNG

    however if there are multiple user, then better to have a mapping of user from source to destination in a table and then you can use lookup component in SSIS to resolve the GUID as per the value in source.

    Thanks,

    PS

  • ganeshm Profile Picture
    on at

    thanks  for your reply ,

    can u help me with any link for the toolbox component description and uses.

  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at
  • Suggested answer
    prt33k Profile Picture
    6,907 on at

    Detail of lookup transformation can be found here : www.simple-talk.com/.../implementing-lookup-logic-in-sql-server-integration-services

    Derived column is pretty straight forward - you can refere www.dotnetfunda.com/.../use-of-derived-column-in-ssis

  • ganeshm Profile Picture
    on at

    thanks,

    i am using crm online for both sources and destination.For the lookup transformation ,connection are available for the OLEdb. how can establish connection for online crm.

  • Community Member Profile Picture
    on at

    I've same problem. How can we lookup towards online crm? We can't use cache, nor oledb

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans