fileattachment EntityType

File Attachment

Entity Set Path
[organization URI]/api/data/v9.0/fileattachments
Base Type
crmbaseentity
Display Name
FileAttachment
Primary Key
fileattachmentid
Primary Key Attribute
filename

Properties

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

Name Type Details
createdon Edm.DateTimeOffset

Date and time when the attachment was created.

Display Name: Created On

Read Only
fileattachmentid Edm.Guid

Unique identifier of the file attachment.

Display Name: FileAttachmentId

filename Edm.String

File name of the attachment.

Display Name: File Name

filesizeinbytes Edm.Int64

File size of the attachment in bytes.

Display Name: File Size (Bytes)

Read Only
mimetype Edm.String

MIME type of the attachment.

Display Name: MIME Type

objecttypecode Edm.String

Type of entity with which the file attachment is associated.

Display Name: Object Type

regardingfieldname Edm.String

Regarding attribute schema name of the attachment.

Display Name: Regarding Attribute Schema Name

versionnumber Edm.Int64

Version number of the file attachment.

Display Name: Version Number

Read Only

Lookup Properties

Lookup properties are read-only, computed properties which contain entity primary key Edm.Guid data for one or more corresponding single-valued navigation properties. More information: Lookup properties and Retrieve data about lookup properties.

Name Single-valued navigation property Description
_objectid_value FileAttachment_Solutionobjectid_stagesolutionuploadobjectid_msdyn_knowledgearticleimageobjectid_msdyn_aibfileobjectid_workflowlogobjectid_flowsessionobjectid_workflowbinary

Unique identifier of the object with which the attachment is associated.

Single-valued navigation properties

Single-valued navigation properties represent lookup fields where a single entity can be referenced. Each single-valued navigation property has a corresponding partner collection-valued navigation property on the related entity.

Name Type Partner
FileAttachment_Solution solution regardingobjectid_fileattachment_solution
objectid_flowsession flowsession flowsession_FileAttachments
objectid_msdyn_aibfile msdyn_aibfile msdyn_aibfile_FileAttachments
objectid_workflowlog workflowlog workflowlog_FileAttachments

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
FileAttachment_SyncErrors syncerror regardingobjectid_fileattachment_syncerror
solution_fileid solution fileid

See also