Represents a comment that provides additional information about the associated Case.
create(), update(), delete(), query(), search(), retrieve(), getDeleted(), getUpdated(), describeSObjects()
| Field | Field Type | Field Properties | Description |
|---|---|---|---|
| CommentBody | textarea | Create | Text of the CaseComment. The maximum size of the comment body is 4000 bytes. Label is Body. |
| IsDeleted | boolean | Defaulted on create | Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted. |
| IsPublished | boolean | Create | Indicates whether the CaseComment is visible to customers in the Self-Service portal (true) or not (false). Label is Published. This is the only CaseComment field that can be updated via the API. |
| ParentId | reference | Create | Required. ID of the parent Case of the CaseComment. For information on IDs, see ID Field Type. |
In the Salesforce user interface, comments are generally entered by Users working on a Case. All users have access to create and view CaseComments in the Salesforce user interface and when using the API. In the API, CaseComments cannot be modified after insertion unless the user has the "Modify All Data" permission. If not, users can only update the IsPublished field, and cannot delete CaseComments.