Jagamisviis:


attachment EntityType

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Description: Attachment for an email activity.

Entity Set path:[organization URI]/api/data/v8.2/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 lookup properties.

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

Properties

Properties represent fields of data stored in the entity. Some properties are read-only.

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

Attachment_SyncErrors

syncerror EntityType

regardingobjectid_attachment_syncerror

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

See Also

Use the Microsoft Dynamics 365 Web API
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 365

© 2016 Microsoft. All rights reserved. Copyright