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)

SSIS Upsert operation

(0) ShareShare
ReportReport
Posted on by 215

Hi guys, I have an interesting migration project i've been working on in the last month.

We are migrating a legacy !ACT database to CRM, and i have come to an interesting point and i just have to ask since i can't find any info when i tried to google it.

So i wonder is it possible to do an Upsert Operation with SSIS where i have two criteria/two columns the id and another column. So basically what that means is update the record if in the system you find a match for ID and LastNAme(just an example i am not doing it with lastname) and create the record if either ID or LastName are different?

Does anyone know if this is possible.


Regards,

Filip

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Flydancer Profile Picture
    1,332 on at

    Hi Filip,

    yes this is possible.

    First you have to define the alternate key for your entity, see the following link for an explanation: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/define-alternate-keys-entity

    After you've done that, you can use the Alternate Key as the matching criteria, see the last option of the dropdown in the following screenshot:

    I hope this helps.

  • Filip Vanchevski Profile Picture
    215 on at

    I was wondering if Manually specify would do the same, and then in the Column Mapping section i can check both the id and the last name column, would this work as well?

    Thanks for the help btw

  • Flydancer Profile Picture
    1,332 on at

    Your alternative could work, too. Better try it with just a few records.

    PS: If you'll use the alternate keys approach you don't have to worry about duplicates because crm won't allow them.

  • Filip Vanchevski Profile Picture
    215 on at

    Ok thanks, i will try in the DEV org, and post the answer here for future reference, thanks for the help again.

    Regards,

    Filip

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