---
schema_version: "1"
id: fd3a02d43ce6925050abb1d2e3fab1ab125f38c1a868210a0542bac910512d17
title: ConnectApi.CaseComment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_case_comment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_case_comment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4d24c3d54484a8ce3b78ad22bfd76d9e8615d5762fd876f14ee70adade0fd014
description: Attachments in feed items with type CaseCommentPost.
---
# ConnectApi.CaseComment

Attachments in feed items with type CaseCommentPost.

![Important](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/images/icon_note_important.png)

#### Important

This class isn’t available in version 32.0 and later. In version 32.0 and later, [ConnectApi.CaseCommentCapability](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_case_comment_capability.htm "If a feed element has this capability, it has a case comment on the case feed.") is used.

Subclass of [ConnectApi.FeedItemAttachment](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_feed_item_attachment.htm "Feed item attachment.").

<table class="featureTable sort_table" summary="">




          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d853648e71">Name</th>

              <th class="featureTableHeader vertical-align-top " id="d853648e74">Type</th>

              <th class="featureTableHeader vertical-align-top " id="d853648e77">Description</th>

              <th class="featureTableHeader vertical-align-top " id="d853648e80">Available Version</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d853648e71" data-title="Name"><samp class="codeph apex_code">actorType</samp></td>

              <td class="entry" headers="d853648e74" data-title="Type">
                <samp class="codeph apex_code">ConnectApi.​CaseActorType</samp>
                Enum
              </td>

              <td class="entry" headers="d853648e77" data-title="Description">Type of user who made the comment.<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">Customer</samp>—if a Chatter customer made the comment
                  </li>
                  <li class="li">
                    <samp class="codeph nolang">CustomerService</samp>—if a service representative made the comment
                  </li>
                </ul>
              </td>

              <td class="entry" headers="d853648e80" data-title="Available Version">28.0–31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d853648e71" data-title="Name"><samp class="codeph apex_code">createdBy</samp></td>

              <td class="entry" headers="d853648e74" data-title="Type"><samp class="codeph apex_code"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_user_summary.htm" title="User summary.">ConnectApi.​User​Summary</a></samp></td>

              <td class="entry" headers="d853648e77" data-title="Description">Comment’s creator</td>

              <td class="entry" headers="d853648e80" data-title="Available Version">28.0–31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d853648e71" data-title="Name"><samp class="codeph apex_code">createdDate</samp></td>

              <td class="entry" headers="d853648e74" data-title="Type">Datetime</td>

              <td class="entry" headers="d853648e77" data-title="Description">ISO 8601 date string, for example, 2011-02-25T18:24:31.000Z</td>

              <td class="entry" headers="d853648e80" data-title="Available Version">28.0–31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d853648e71" data-title="Name"><samp class="codeph apex_code">id</samp></td>

              <td class="entry" headers="d853648e74" data-title="Type">String</td>

              <td class="entry" headers="d853648e77" data-title="Description">Comment’s 18–character ID</td>

              <td class="entry" headers="d853648e80" data-title="Available Version">28.0–31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d853648e71" data-title="Name"><samp class="codeph apex_code">published</samp></td>

              <td class="entry" headers="d853648e74" data-title="Type">Boolean</td>

              <td class="entry" headers="d853648e77" data-title="Description">Specifies whether the comment has been published</td>

              <td class="entry" headers="d853648e80" data-title="Available Version">28.0–31.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d853648e71" data-title="Name"><samp class="codeph apex_code">text</samp></td>

              <td class="entry" headers="d853648e74" data-title="Type">String</td>

              <td class="entry" headers="d853648e77" data-title="Description">Comment’s text</td>

              <td class="entry" headers="d853648e80" data-title="Available Version">28.0–31.0</td>

            </tr>

          </tbody>

        </table>