Attachment
An Attachment is either:
-
A file uploaded and stored in SuiteProjects Pro and associated with a record. Each attachment includes file metadata as well as the file itself.
Note:Workspace documents are attachments associated with a workspace record.
-
A folder that can contain attachments.
Review the Usage Guidelines for the Attachment object.
|
— |
XML |
SOAP |
REST |
Database table |
|---|---|---|---|---|
|
Object |
|
|
|
|
|
Supported Commands |
To work with attachments, use the endpoints and methods specific to the object the attachments are associated with. See REST API Endpoint Reference. |
— |
The Attachment object has the following standard properties:
Attachment object properties may also include custom fields. The object type supports the custom equal to read method and the enable_custom read attribute.
|
XML / SOAP |
REST |
Database |
Description |
|---|---|---|---|
|
— |
|
|
The internal ID of the attachment category. |
|
|
— |
|
If non-zero, the attachment record associated with this attachment. |
|
|
— |
|
Base 64 encoded binary data of the attachment file. |
|
|
|
|
[Read-only] The date and time the attachment was created. See Date Fields |
|
|
|
|
The filename of the attached file uploaded by the user. |
|
— |
|
— |
[Read-only] The file type. This is used for tracking purposes. |
|
|
— |
|
[Read-only] The relative path and filename of the attached file stored on SuiteProjects Pro servers. |
|
— |
|
— |
[Read-only] A 1/0 field indicating if a thumbnail image is available for the attachment. Returned only if the Attachment Thumbnail and Attachment Viewer feature is enabled for your SuiteProjects Pro account. |
|
|
|
|
[Read-only] The unique internal identifier of the attachment. Assigned by SuiteProjects Pro |
|
— |
|
|
A 1/0 field indicating if the attachment is excluded from the alert system. |
|
|
|
|
A 1/0 field indicating if other attachment records have this attachment record as a parent. |
|
— |
|
|
A 1/0 field indicating if the attachment is locked for editing. |
|
— |
|
— |
A 1/0 field indicating if the attachment is viewable using the Attachment Viewer feature. Returned only if the Attachment Thumbnail and Attachment Viewer feature is enabled for your SuiteProjects Pro account. |
|
|
|
|
[Read-only] The internal ID of the employee who uploaded the file. The value is 0 (zero) if unlocked. |
|
|
|
|
The display name of the attachment. |
|
|
|
|
Notes about the attachment. This attribute is used for keyword search. |
|
|
— |
|
The type of record this attachment is attached to. For example: |
|
|
— |
|
The internal ID of the record linking to this attachment. |
|
|
— |
|
The internal ID of the immediate ancestor attachment. If |
|
|
|
|
[Read-only] The file size in bytes. |
|
|
|
|
[Read-only] Time the record was last modified. See Date Fields |
|
— |
|
|
[Read-only] The internal ID of the employee who uploaded the file. |
|
|
|
|
The internal ID of the associated workspace. |
Usage Guidelines
Review the following guidelines:
-
Some object properties are required depending on the
is_a_folderproperty value:-
If
is_a_folderis set to1then following object properties are required:-
name -
workspaceid
-
-
Otherwise, the following object properties are required:
-
base64_data -
file_name -
owner_type -
ownerid
-
-
-
It is not possible to add, modify, or delete an attachment file if the object that this file is attached to (object referenced by
owner_typeandownerid) cannot be edited. For expense or timesheet attachments, for example, the associatedEnvelopeorTimesheetmust have astatusequal toO(Open). -
When adding an attachment file, the size of the attachment file (calculated from
base64_data) must be smaller than the storage space available in your company's SuiteProjects Pro account. -
When modifying an
Attachment, only the following properties can be updated:-
attachmentid -
name -
notes -
parentid
-
-
If the Attachment Thumbnail and Attachment Viewer feature is enabled for your SuiteProjects Pro account, a thumbnail is generated automatically when you add an attachment of a supported format. The
file_nameproperty value must include a supported file extension. For more information about the Attachment Thumbnail feature, including supported file format and filename extensions, see Attachment Viewer and Attachment Thumbnail.