开发者

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开发者_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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜