2

I asked a similar yet slightly different question before here. I am using CRM 2013 Online and there are couple of thousand records in it. The records we created by an import of excel sheet data that came from a SQL database.

There were some fields in each record in which there was no data when the first import from excel was made. The system works in such a way that the excel sheet is updated from the SQL database periodically, and that data then needs to be imported in CRM Online. As far as I know and mentioned in the shared link, you can only bulk update the records in CRM by first importing the data from CRM to Excel and then reimporting the same sheet back to excel.

Is there a way to bulk update the records in CRM Online if I get data from the client in an Excel sheet?

Right now I compare their excel sheet to my exported excel sheet and make the required changes. It works well for small amount of records but it is infeasible for bulk record update. Any ideas?

2) Or is their a way to compare two excel sheets and make sure that if you copy columns from one sheet to another, the data in the column ends up in the right rows?

4
  • 1
    powerobjects.com/blog/2013/08/01/… I found this, another option that addresses my issue. But I want some opinions on the way described here.
    – hkhan
    Sep 15, 2014 at 15:22
  • Regarding the PowerObjects blog post, this could be an efficient way to update records. It's going to end up adding more data in Microsoft CRM with the addition of a new entity, but that can be handled through bulk delete jobs to clean up the records after they are imported. Testing it would be the best way to find out how it works for your scenario.
    – Chad Rexin
    Mar 11, 2016 at 3:13
  • What approach did you decide on?
    – Kye
    Dec 13, 2016 at 21:13
  • Well I added the new records in a test/dummy entity. Used a workflow that was associated with this test entity that ran on new records, matched the ID in test entity with the record ID in my actual entity. This way you can add new records and update the old ones
    – hkhan
    Dec 21, 2016 at 18:23

3 Answers 3

1

I faced a similar issue with updating records from a CSV file. It is true that SSIS is one way. To solve our problem, I created a .NET executable application which is scheduled to execute once per week. The .NET application does the following

  1. Connects to the organisation
  2. Imports all records from the excel spreadsheet using a pre-existing data map in CRM organisation
  3. Runs a duplicate detection rule (already existing in the CRM organisation)and brings back all duplicates
  4. Sorts through each duplicate and stores the guid into 2 arrays: list of original records and list of newly imported records (based on created date of record)
  5. Performs a merge of the old data on the record with the new data (this is performed through the CRM2013 SDK MergeResponse class
  6. Now that the original records have been updated with the new data from the spreadsheet, delete the duplicate records which have just been created and then made inactive due to the use of MergeResponse class in step 5 . (for us, we were updating contact info, but wanted the orginal contact to stay in CRM because they will have cases etc related to that contact's GUID)

If you want to go down this route, I suggest looking at the example on the MS website which uses the CRM SDK (\CRM 2013 SDK\SDK\SampleCode\CS\DataManagement\DataImport\ImportWithCreate.cs). That is the sample code which I used to create the web service.

0

As you have thousands of records then I guess that SSIS Package is the best option for you. its very efficient in such scenorios.

4
0

This is the approach I would use:

  1. Create a Duplication Detection Rule under Settings > Data Management

  2. Download the Import Template

  3. Adjust your source system to generate the spreadsheet in that particular format

Depending on the frequency of your updates I'd look into CRM web services to import your data.

2
  • Kye, what do you mean by point 3? Can you elaborate it a little more.
    – hkhan
    Sep 18, 2014 at 5:40
  • You mentioned that you use SQL to generate the spreadsheet. I'd change the SQL so that the column names and value match what CRM is expecting. That might save you some time if you need to do the upload on a regular basis.
    – Kye
    Sep 18, 2014 at 6:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.