共用方式為


attachment EntityType

Description: Attachment for an email activity.

Entity Set path: [organization URI]/api/data/v8.0/attachments

Base Type: crmbaseentity EntityType

Display Name: Attachment

Primary Key: attachmentid

Primary Name Attribute: filename

Properties

Collection-valued navigation properties

Operations using the attachment entity type.

The attachment entity type has no single-valued navigation properties.

Properties

Properties represent fields of data stored in the entity. Some properties are not writable.

Name Type Details

attachmentid

Edm.Guid

Description: Unique identifier of the attachment.

Display Name: Attachment

body

Edm.String

Description: Contents of the attachment.

Display Name: Body

body_binary

Edm.Binary

Description: Contents of the attachment.

filename

Edm.String

Description: File name of the attachment.

Display Name: File Name

filesize

Edm.Int32

Description: File size of the attachment.

Display Name: File Size (Bytes)

Read-only property

mimetype

Edm.String

Description: MIME type of the attachment.

Display Name: MIME Type

subject

Edm.String

Description: Subject associated with the attachment.

Display Name: Subject

versionnumber

Edm.Int64

Description: Version number of the attachment.

Display Name: Version Number

Read-only property

Collection-valued navigation properties

Collection-valued navigation properties represent collections of entities which may represent either a one-to-many (1:N) or many-to-many (N:N) relationship between the entities.

Name Type Partner

attachment_activity_mime_attachments

activitymimeattachment EntityType

attachmentid

Operations using the attachment entity type.

The following operations use the attachment entity type in a parameter or return type.

Name How used Description

DeliverIncomingEmail Action

Attachments Parameter

Creates an email activity record from an incoming email message.

DeliverPromoteEmail Action

Attachments Parameter

Creates an email activity record from the specified email message

請參閱

其他資源

Web API Action Reference
Web API Function Reference
Web API Query Function Reference
Web API EnumType Reference
Web API ComplexType Reference
Web API Metadata EntityType Reference

Microsoft Dynamics CRM 2016 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.