开发者

Dynamics CRM 2011 attach file with SDK

开发者 https://www.devze.com 2023-03-21 19:43 出处:网络
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开发者_JAVA百科 and C#?In order to attach a file to an entity

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开发者_JAVA百科 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号