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.
Returns a Promise which represents a CommentRecord object
The SID of the activity to which the comment should be attached
The text for the comment
Get pre-defined comments for activityTypes
Returns Promise object that represents a collection of available comment templates.
Optional
problemSid: numberThe ProblemSid if currentActivityType is (Service) Request
Optional
category: stringOnly applies to WorkOrder and ServiceRequest category comments.
A plugin that contains "comments" methods