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)

Importing attachments programmatically

(0) ShareShare
ReportReport
Posted on by

Hi All,

1) I'm using MS Dynamics Online 2016 and trying to import attachments programmatically.

2) I have several external files that should be attached to an Account by using Account's name. I have a .csv file that has all the mapping data and manual import with wizard works, i.e. I can upload the external files and create new Notes with attachments for my Accounts with this setup file. 

3) I've tried using the code from: https://blogs.msdn.microsoft.com/crm/2012/08/06/how-to-import-attachments-programmatically/ but it doesn't work (throws Exception "The column heading does not match the attribute display label").

4) It seems that CRM SDK 2016 DataImport sample (https://msdn.microsoft.com/en-us/library/hh547396.aspx) works as such, but it doesn't do anything with attachments.

5) So, assuming I have a file called "A.pdf" and an Account named "ACME", what is the correct way to upload A.pdf to the CRM 2016 and attach it to ACME using C#?

Thanks.

*This post is locked for comments

I have the same question (0)

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