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_exportsolutionuploadobjectid_asyncoperationobjectid_canvasappobjectid_workflowlogobjectid_flowsessionobjectid_workflowbinaryobjectid_msdyn_aiconfigurationobjectid_msdyn_aibfeedbackloopobjectid_msdyn_aibfileobjectid_activityfileattachmentobjectid_knowledgearticleobjectid_msdyn_knowledgearticleimageobjectid_msdyn_kbattachmentobjectid_pluginpackageobjectid_mailboxobjectid_webresourceobjectid_msdyn_richtextfileobjectid_msdyn_pminferredtaskobjectid_connector

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_activityfileattachment activityfileattachment activityfileattachment_FileAttachments
objectid_asyncoperation asyncoperation asyncoperation_FileAttachments
objectid_canvasapp canvasapp canvasapp_FileAttachments
objectid_connector connector connector_FileAttachments
objectid_exportsolutionupload exportsolutionupload exportsolutionupload_FileAttachments
objectid_flowsession flowsession flowsession_FileAttachments
objectid_knowledgearticle knowledgearticle knowledgearticle_FileAttachments
objectid_mailbox mailbox mailbox_FileAttachments
objectid_msdyn_aibfeedbackloop msdyn_aibfeedbackloop msdyn_aibfeedbackloop_FileAttachments
objectid_msdyn_aibfile msdyn_aibfile msdyn_aibfile_FileAttachments
objectid_msdyn_aiconfiguration msdyn_aiconfiguration msdyn_aiconfiguration_FileAttachments
objectid_msdyn_kbattachment msdyn_kbattachment msdyn_kbattachment_FileAttachments
objectid_msdyn_knowledgearticleimage msdyn_knowledgearticleimage msdyn_knowledgearticleimage_FileAttachments
objectid_msdyn_pminferredtask msdyn_pminferredtask msdyn_pminferredtask_FileAttachments
objectid_msdyn_richtextfile msdyn_richtextfile msdyn_richtextfile_FileAttachments
objectid_pluginpackage pluginpackage pluginpackage_FileAttachments
objectid_stagesolutionupload stagesolutionupload stagesolutionupload_FileAttachments
objectid_webresource webresource webresource_FileAttachments
objectid_workflowbinary workflowbinary workflowbinary_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_CanvasApp_BackgroundImage canvasapp backgroundimage
FileAttachment_CanvasApp_LargeIcon canvasapp largeicon
FileAttachment_CanvasApp_MediumIcon canvasapp mediumicon
FileAttachment_CanvasApp_SmallIcon canvasapp smallicon
FileAttachment_CanvasApp_TeamsIcon canvasapp teamsicon
FileAttachment_CanvasApp_WideIcon canvasapp wideicon
FileAttachment_pluginpackage_FileId pluginpackage FileId
FileAttachment_SyncErrors syncerror regardingobjectid_fileattachment_syncerror
FileAttachment_WebResource_ContentFileRef webresource ContentFileRef
FileAttachment_WebResource_ContentJsonFileRef webresource ContentJsonFileRef
solution_fileid solution fileid

Solutions

The following solutions include the fileattachment entity type.

Name Description
File Store Service Extension

See also