locked
Export/Import attachments from Dynamics 2011/2013 RRS feed

  • Question

  • Hello all,

    i am moving from CRM 2011 on-premise to 2013 on-premise on other servers.

    I need to copy all the attachments from the old system into the new one.

    I am trying to avoid using scribe or any other instances which cost money. i found some options for import but the export part is the tricky one.

    1. how can i export all of the attachments (not email attachments!) into a specific folder?

    2. it might be problematic to access the DB. can i do it without connecting to the existing DB?

    Thanks in advance,

    Ofer


    oferf

    Tuesday, February 25, 2014 10:26 AM

All replies

  • To export the data you could write a .Net application that retrieved all the Annotations with a DocumentBody, and saved the data to a folder. The file contents are stored a s a Base64 Encoded string, but you can convert that to a byte array using Convert.FromBase64String.

    The CRM SDK has an sample UploadAndDownloadAttachment, which may help


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Tuesday, February 25, 2014 1:26 PM
    Moderator