Entry
Overview
An entry represent a payload of content appended to a thread's at a specific time by a specific user or role
- From version: 2020.20
Properties
attachments
attachments: Attachment[]
This property returns the listing of attachments for this specific entry in the tread. Each attachment is an independent file including audio files, office documents etc.
content
content: object
This object holds the payload of content that is stored in each entry of the thread. The payload can be of any JSON structure to suit the needs of the specific application chosen.
createDate
createDate: Date
The date when the entry was created.
id
id: string
The entry object's unique id.
owner
owner: Contact
The owner or user that created the entry.
Methods
addNewAttachment
addNewAttachment ( attachmentType : AttachmentType ): Attachment
This function adds a new attachment to the entry.
Parameters
-
attachmentType:AttachmentType
The type of the new attachment you want to create.
Returns Attachment
Attachment-The new Attachment for you to add to the entry.
removeAttachment
removeAttachment ( attachmentId : string): void
This function removes the selected attachment object from the entry's attachments list.
Parameters
Returns void
save
save (): Promise<void>
This function saves any changes made to the entry object.
Returns Promise<void>