CaseComment

Represents a comment that provides additional information about the associated Case.

If you’re importing CaseComment data and must set the value for an audit field, such as CreatedDate, contact Salesforce. Record id’s can’t delete CaseComments entities when calling the Database.delete() Apex method or its analogous SOAP API. Audit fields are automatically updated during API operations unless you request to set these fields yourself.

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

  • Type: textarea
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: Text of the CaseComment. The maximum size of the comment body is 4,000 bytes. Label is Body.
  • Type: textarea
  • Properties: Create, Nillable, Update
  • Introduced: API version 63.0
  • Type: reference
  • Properties: Filter, Group, Nillable, Sort
  • Introduced: API version 16.0
  • Description: ID of the PartnerNetworkConnection that shared this record with your organization. This field is available if you enabled Salesforce to Salesforce.
  • Relationship name: ConnectionReceived
  • Relationship type: relationship
  • Refers to: PartnerNetworkConnection
  • Type: reference
  • Properties: Filter, Group, Nillable, Sort
  • Introduced: API version 16.0
  • Description: ID of the PartnerNetworkConnection that you shared this record with. This field is available if you enabled Salesforce to Salesforce. This field is supported using API versions earlier than 15.0. In all other API versions, this field’s value is null. You can use the new PartnerNetworkRecordConnection object to forward records to connections.
  • Relationship name: ConnectionSent
  • Relationship type: relationship
  • Refers to: PartnerNetworkConnection
  • Type: string
  • Properties: Filter, Group, Nillable, Sort
  • Introduced: API version 26.0
  • Description: URL of the user’s profile photo from the feed. Chatter Answers must be enabled to view this field.
  • Type: string
  • Properties: Filter, Group, Nillable, Sort
  • Introduced: API version 26.0
  • Description: Name of the user who posted the question or reply. Only the first name of internal users (agents) appears to portal users in the feed. Chatter Answers must be enabled to view this field.
  • Type: string
  • Properties: Filter, Group, Nillable, Sort
  • Introduced: API version 26.0
  • Description: URL of the user’s thumbnail photo from the feed. Chatter Answers must be enabled to view this field.
  • Type: boolean

  • Properties: Create, Defaulted on create, Group, Sort, Update

  • Introduced: API version 43.0

  • Description:

    Indicates whether an email notification is sent to the case contact when a CaseComment is created or updated. When this field is queried, it always returns null.

    This field is available only when the Enable Case Comment Notification to Contacts setting is enabled on the Support Settings page in Setup. To send email notifications for CaseComment, you must use the EmailHeader triggerUserEmail.

  • Default value: false

  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: 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.
  • Default value: false
  • Type: reference

  • Properties: Create, Filter, Group, Sort

  • Description:

    Required. ID of the parent Case of the CaseComment.

    This is a relationship field.

  • Relationship name: Parent

  • Relationship type: relationship

  • Refers to: Case

In the Salesforce user interface, comments are entered by a User working on a Case. All users have access to create and view CaseComment in the Salesforce user interface and when using the API. In the API, CaseComment records can’t be modified after insertion unless the user has the “Modify All Records” object-level permission for Cases or the “Modify All Data” permission. If not, users can only update the IsPublished field, and can’t delete CaseComment.