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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Update existing records on import (using alternate keys - account number)???

(0) ShareShare
ReportReport
Posted on by 456

Hi CRM'ers

I thought the news about alternate keys would solve the missing link I've been searching for since I've started working in 4.0 ...

I'm doing a plain csv export from my ERP accounts and would like to import them into CRM ... works fine using native import function. But next month I want to insert/update a new csv file (using Account Number as key). But even after I've been setting up alternate key on Account Number, it still does not update the existing records in CRM.

Have I missed something - can it really be true that CRM natively still does not support insert/update on imports??? (or can a free tool I'm not aware of help me?)

I know how to use Scribe, using export to excel and update that file, using Powerobjects old trick with an extra entity ... but I just thought that alternate keys was the new black in town I've been waiting for for years?!?

BR Henrik

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    AlexMcL Profile Picture
    8 on at
    RE: Update existing records on import (using alternate keys - account number)???

    This is probably not much use for those in the trail above, but might be for people finding this post, but ... this does now work.

    The import option now has:

    pastedimage1639685049074v1.png

    This allows update of records with the alternate key.

    See Power CAT YouTube

  • Suggested answer
    Yadnyesh Kuvalekar Profile Picture
    4,102 on at
    RE: Update existing records on import (using alternate keys - account number)???

    Hi,

    You are right. Even I realised it later when I suggested an answer. I also got an idea to achieve this using alternate key. You will have to do below things but I feel this will save time as compared to other options we have.

    1. Have your separate Excel sheet ready with updated data and alternate key column.

    2. Create an advance find view of an entity of which you want to update the data, ensure you include alternate key column in the view.

    3. Export the data. Open exported Excel.

    4. Use VLOOKUP formula of Excel and populate required columns by matching Alternate key. Save the file and import it.

    Hope this helps.

  • wikap.dk Profile Picture
    456 on at
    RE: Update existing records on import (using alternate keys - account number)???

    dear Yadneyesh

    Thanks for taking the time to answer my request ... unfortanetely this does not solve ... I need a way to insert/update in one go so you can export a source table and then just easily import the file taking into consideration an update on existing records.

    Also you do not have to define an alternate key for using the methos you have described - this way of choosing the lookup key has always been an option many versions back.

    Thanks, Henrik

  • Yadnyesh Kuvalekar Profile Picture
    4,102 on at
    RE: Update existing records on import (using alternate keys - account number)???

    Hi Wikap,

    My blog on this might help you. It also explains how we can update existing data using alternate key.

    themscrmexpert.wordpress.com/.../how-alternate-key-is-useful-while-importing-data-into-crm

  • wikap.dk Profile Picture
    456 on at
    RE: Update existing records on import (using alternate keys - account number)???

    Thanks Somesh and  Srikanth,

    I just still wonder why you cant do a manually simple insert/update using the built in import tool, and when I read about the alternate keys I just thought that this was solved.

    /Henrik

  • Suggested answer
    ansrikanth Profile Picture
    3,115 on at
    RE: Update existing records on import (using alternate keys - account number)???

    You can't update records natively with the help of alternate keys. But I'm 90% sure that one can do it using Scribe. I remember doing so for lot of packages in previous projects. Unfortunately I don't have an environment to provide the steps here :(, It should be some thing like combination of mappings & steps would help out in achieving this.

  • Verified answer
    Somesh2207 Profile Picture
    1,563 on at
    RE: Update existing records on import (using alternate keys - account number)???

    Hi Henrik,

    The alternate key is an awesome feature in CRM, and it should solve the issues with integration to identify and update the records if they already exist.

    Alternate keys address 2 issues:

    1. Validate/ Restrict duplicate records based on whatever combination we provide.

    2. Upsert data automatically based on the alternate key.

    #1 is always ensured by CRM, but #2 is not. Which means Upsert works with custom code but not by default.

    Alternate keys do not work with Excel/ CSV imports. It will validate and not allow to create the duplicate records based on the alternate key definition, but it does not automatically update the record if it already exist.

    I have also worked with Scribe, and the scribe platform (and Scribe Online) today does not support alternate keys. They have to upgrade their CRM connector to have Upsert operations using alternate key which is not present today.

    Your only option today is to write a custom code which will read from Excel/ csv and do upsert operations.

    Upsert operations Reference link: https://msdn.microsoft.com/en-us/library/dn932135.aspx

    I know this was not exactly what you were looking for, but I guess I answered your question.

    Kindly Mark This as Answer if you feel the same.

    BR

    Somesh Siriuram

  • am462 Profile Picture
    110 on at
    RE: Update existing records on import (using alternate keys - account number)???

    you are correct, import wont update records using alternate key. it can only be used programmatically to update records.

  • wikap.dk Profile Picture
    456 on at
    RE: Update existing records on import (using alternate keys - account number)???

    Anyone got ideas for this "update existing records on import - natively"?

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans