简体   繁体   中英

Dynamics CRM 2011 attach file with SDK

I saw a feature in Dynamics CRM 2011 of attaching file to an entity with user interface. How I can attach file using Dynimcs CRM SDK 2011 and C#?

In order to attach a file to an entity programmatically, it must first have Notes enabled on the entity ( HasNotes is true ).

Then, create an Annotation entity record (more information here: http://msdn.microsoft.com/en-us/library/gg334398.aspx ). To associate it to a specific record, use an AssociateRequest (more here: http://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.messages.associaterequest.aspx ).

There is a sample of at least creating an annotation here: http://msdn.microsoft.com/en-us/library/gg328429.aspx .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM