Storage of all potential activity types which comments can be attached to: Unknown, Request, WorkOrder, CaTask, CaObject, CaCorrection, Project, Contract
Storage of object's active activityType
Add a comment - for adding a comment to an object when the object is already known. Always call comment.add from request, case, workorder, or inspection.
The SID of the activity to which the comment should be attached
The text for the comment
Returns a Promise which represents a CommentRecord object
Get comments for activity items
The options SIDs to get comments for.
Returns Promise object that represents a collection of available comments
Get pre-defined comments for activityTypes
The ProblemSid if currentActivityType is (Service) Request
Optional
category: stringOnly applies to WorkOrder and ServiceRequest category comments.
Returns Promise object that represents a collection of available comment templates.
Update a comment
The ID of the comment which should be updated
The new text for the updated comment
Returns a Promise which represents a CommentRecord object
A plugin that contains "comments" methods