---
schema_version: "1"
id: b5f9b6d0da9177d3a8368a3af5c0de971776c6c66f15287c236974bd20a087b5
title: CaseComment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_casecomment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_casecomment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ecb3c6c911df0f091530dffa9672fc4efd448465c965ae8024959ed343dcae3c
description: Represents a comment that provides additional information about the associated Case.
---
# CaseComment

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

## Supported Calls

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

## Fields

| Field | Details |
| --- | --- |
| CommentBody | 
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**.



 |
| ConnectionReceivedId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

ID of the PartnerNetworkConnection that shared this record with your organization. This field is available if you enabled Salesforce to Salesforce.



 |
| ConnectionSentId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

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.



 |
| CreatorFullPhotoUrl | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

URL of the user’s profile photo from the feed. Chatter Answers must be enabled to view this field. This field is available in API version 26.0 and later.





 |
| CreatorName | 

Type

string

Properties

Filter, Group, Nillable, Sort

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. This field is available in API version 26.0 and later.





 |
| CreatorSmallPhotoUrl | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

URL of the user’s thumbnail photo from the feed. Chatter Answers must be enabled to view this field. This field is available in API version 26.0 and later.





 |
| IsDeleted | 

Type

boolean

Properties

Defaulted on create, Filter

Description

Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is **Deleted**.



 |
| IsNotificationSelected | 

Type

boolean

Properties

Create, Defaulted on create, Update

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.

Available in API version 43.0 and later.





 |
| IsPublished | 

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.



 |
| ParentId | 

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

Lookup

Refers To

Case



 |

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

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.

## Usage

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.

#### See Also

- [Overview of Salesforce Objects and Fields](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_concepts.htm "Salesforce objects and fields are analogous to database tables and the table columns. Objects and fields structure data. For example, the central object in the Salesforce data model represents accounts—companies and organizations involved with your business, such as customers, partners, and competitors.")