This documentation is archived and is not being maintained.

E-mail Attachment (activitymimeattachment) Entity Capabilities

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

This entity represents an attachment to an e-mail message.

An attached file can be any standard file format. This includes Microsoft Word documents, Microsoft Excel spreadsheets, CAD files, and PDF files. An attachment can be associated with any object (other than a note) in Microsoft Dynamics CRM.

To upload or remove an attachment, use the Update method, setting the filename and mimetype properties. This uploads an attachment that has been decoded into a base64 string format. The System.Convert.ToBase64String method can be used to convert the contents of a data file into base64 formatted string. There is a maximum file size limit on the uploaded file data. That limit is defined in the system registry.

The class for this entity is activitymimeattachment. For e-mail attachments, you can use the messages listed in the following table with the Execute method.

CreateUse this message to create an e-mail attachment.

The information that is used to create the entity instance is specified in the TargetCreateActivityMimeAttachment class.

You can also call the Create method.

DeleteUse this message to delete an e-mail attachment.

The entity instance to delete is specified in the TargetDeleteActivityMimeAttachment class.

You can also call the Delete method.

RetrieveUse this message to retrieve an e-mail attachment.

The entity instance to retrieve is specified in the TargetRetrieveActivityMimeAttachment class.

You can also call the Retrieve method.

RetrieveMultipleUse this message to retrieve a collection of e-mail attachments.

The query expression that describes the entity instances to retrieve is specified in the Query property of this request.

You can also call the RetrieveMultiple method.

UpdateUse this message to update an e-mail attachment.

The entity instance to update is specified in the TargetUpdateActivityMimeAttachment class.

You can also use the Update method.

See Also


Other Resources


© 2010 Microsoft Corporation. All rights reserved.