Attachment DTO v14

Attachment represents a binary file together with name, description and a reference to any other object. This object gets usually linked to activities where one can attach photos and audio notes or even pdf documents and other documents (depending on the client).

This can be useful to transmit manuals or weekly detail reports to the field people.

Field Name Type Category Constraint Reference Description
category String Optional length >= 0 & length <= 255

Allowed values are defined into Enumerations having enumType = ATTACHMENT_CATEGORY.
For learning about Enumerations, please check this.
Provides a way of grouping attachments into categories.
description String Optional length >= 1 & length <= 2147483647 Contains description of the given attachment.
fileContent byte Optional The binary content of the attachment. Please use the Attachment API for reading or writing to this field.
fileName String Required length >= 1 & length <= 512 Name of the attached file.
object ObjectRef Required Referenced object for this attachment, standard referenced objects are activities.
ordinal Integer Optional Provides a way of ordering attachments.
sourceObject ObjectRef Optional
title String Optional length >= 1 & length <= 512 Attachment title.
type ContentType Optional Allowed values { PNG, TIFF, GIF, JPG, JPEG, TXT, RTF, HTML, HTM, XML, PDF, DOC, XLS, PPT, PPTX, XLSX, DOCX, MP4, AAC, MSG, ZIP, TIF, DWG, DWF, DXF, MOV, M4V, THREEGP, BMP, ICO, CUR, XBM } Type of the attachment (is also used to load the appropriate viewer on the client devices).