---
schema_version: "1"
id: 824d72259ad53e8fe333e44359912697d156573a504c40a288cc04acb97d999b
title: ConnectApi.CommentsCapability
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_comments_capability.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_comments_capability.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 065803d74130a9c68cfa08374e9e54a129714087dbf820d8b733d66c23d86b75
description: If a feed element or comment has this capability, the context user can add a comment to it.
---
# ConnectApi.CommentsCapability

If a feed element or comment has this capability, the context user can add a comment to it.

Subclass of [ConnectApi.FeedElementCapability](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_feed_element_capability.htm "A feed element capability, which defines the characteristics of a feed element.").

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




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

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

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

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

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d893384e55" data-title="Property Name"><samp class="codeph apex_code">page</samp></td>

              <td class="entry" headers="d893384e58" 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_comment_page.htm#apex_connectapi_output_comment_page" title="A page of comments.">ConnectApi.CommentPage</a></samp></td>

              <td class="entry" headers="d893384e61" data-title="Description">
                <span class="ph" id="comments"><a name="comments"><!-- --></a>The comments information for this feed element or comment.</span>
                <p class="p" id="threadedCommentsMinVer"><a name="threadedCommentsMinVer"><!-- --></a>Threaded comments are supported in version 44.0 and
                  later.</p>
              </td>

              <td class="entry" headers="d893384e64" data-title="Available Version">32.0</td>

            </tr>

          </tbody>

        </table>

#### See Also

- [ConnectApi.FeedElementCapabilities](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_feed_element_capabilities.htm "A container for all capabilities that can be included with a feed element.")