Apr 03 2008
Hacking the 4.0 Data Migration Manager to Migrate Email Attachments
UPDATE: Hey Everyone — I no longer have access to this code and actually I no longer recommend this approach. Over the last two years as I’ve gotten better at this, I’ve found straight C# is a better practice. Thanks for all of your interest and good luck…
According to the Data Migration Manager help documentation, “You cannot migrate attachments to e-mail messages, sales literature items, or to any record type that does not support notes.”
So what do you do when you’re doing a data conversion and you need to migrate email attachments?
Well, there’s got to be an more elegant way than this out there, but the first thing that came to mind for me was to migrate the attachments as notes by following the instructions here: http://blogs.msdn.com/crm/archive/2008/03/11/migrating-notes-and-attachments-using-data-migration-manager.aspx
For the csv file, I had three columns. The GUID of the email’s ActivityID, the filepath+filename of the attachment relative to the “Attachments” folder, and the name of the file. I then mapped the ActivityID guid to “Title” the filepath+filename to “Document” and the file name to “File Name”.
Then, all you need to do is go into the database and INSERT INTO ActivityMimeAttachment FROM AnnotationBase where applicable and you’re good to go! Reply to this message if you want more details or code snippets on the specifics of this hack. Fair warning, this is very unsupported.
13 Responses to “Hacking the 4.0 Data Migration Manager to Migrate Email Attachments”
Trackback URI | Comments RSS | del.icio.us | Digg it | Furl | iFeedReaders | Wykop
Hi Phil,
I am currently trying to migrate emails with attachment in my CRM environment and I was wondering whether you can share with me more details/code snippets on how you did the above mentioned steps.
Note: I managed to successfully migrate notes + attachment! =)
Hope to hear from you soon.
Kind Regards,
Christian
Hi Christian,
Sorry for not replying sooner — I was on vacation until this morning. I’ll follow up via the email you posted with more details if you still need them.
Phil
Hi Phil,
Many Thanks for the post and i would really interested to know the steps that need to be followed to migrate the email attachments as currently i am working on a CRM migration project which requires this funtionality to be implemented. Please send me the steps/code snippets to **********@rediffmail.com. Many Thanks for your co-operation.
Thanks,
Shashi
Thanks Shashi, will follow up via email. I’ll obscure your email address so that you don’t get spammed…
Hi Phil - intrigued by this too. Any chance you could share your approach? I’m hoping my email address will come across automatically since it is in the comments form
I’ve been doing a lot of work with emails in CRM4 but wasn’t sure how to approach this import issue…
Thanks
Greg
Sounds good, Greg. Will follow up via email.
Hi,
Seems Interesting, can you send some more details on how you achieved this. I am also trying to do the same for 30000 open cases.
Your details about the approach and steps you took will be helpfull
Thanks
Hi..could you please share the code snippets which u have used to migrate emails and attachements
Hi,
Great article.
I would want to ask how were you able to migrate the emails?
My companies emails contain html so i find it hard to save it in a csv file.
Also there are emails (set in the To, From, CC, etc.) that are not in the system which cause reference error.
Hope you can help.
Thanks in advance.
Thanks for the post. I am interested to know the steps that need to be followed to migrate the email attachments and I would appreciate it if you can share the steps/code with me. I am working on a CRM migration project which requires me to import email attachments.
Hi Phil,
I would like to merge two CRM 4.0 systems with DMM and I need all attachments and bigger descriptions in activities. Could you help me with your code snippets to do this?
Thank you for cooperation
Mike
Hi.. We are looking for a solution where we would like to move email attachments into another crm environment .. can you please share what you have done
Suri
Hey Everyone — I no longer have access to this code and actually I no longer recommend this approach. Over the last two years as I’ve gotten better at this, I’ve found straight C# is a better practice. Thanks for all of your interest and good luck,
Phil