---
schema_version: "1"
id: 933c69cb9c433d6cdd3868ee19ab6aa250d832e673f942b6fa54ff061a756859
title: ConnectApi.CommentPage
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_comment_page.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_comment_page.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: dc31b7a40c7e73c6f107757be685189dcb5054a2c0a74b2b97121eabf8ada3da
description: A page of comments.
---
# ConnectApi.CommentPage

A page of comments.

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




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

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

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

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

            </tr>

          </thead>

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

              <td class="entry" headers="d892172e50" data-title="Type">
                <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list" title="Contains methods for the List collection type.">List</a>&lt;<samp class="codeph apex_code"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_comment.htm" title="A comment.">ConnectApi.​Comment</a></samp>&gt;
              </td>

              <td class="entry" headers="d892172e53" data-title="Description">Collection of comments. <strong class="ph b">Important:</strong> As of version 32.0, use the <samp class="codeph apex_code">items</samp> property.</td>

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

            </tr>

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

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

              <td class="entry" headers="d892172e53" data-title="Description">Token identifying the current page.</td>

              <td class="entry" headers="d892172e56" data-title="Available Version">28.0</td>

            </tr>

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

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

              <td class="entry" headers="d892172e53" data-title="Description">Connect REST API URL identifying the current page.</td>

              <td class="entry" headers="d892172e56" data-title="Available Version">28.0</td>

            </tr>

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

              <td class="entry" headers="d892172e50" data-title="Type">
                <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list" title="Contains methods for the List collection type.">List</a>&lt;<samp class="codeph apex_code"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_comment.htm#apex_connectapi_output_comment" title="A comment.">ConnectApi.​Comment</a></samp>&gt;
              </td>

              <td class="entry" headers="d892172e53" data-title="Description">Collection of comments for this feed element.</td>

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

            </tr>

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

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

              <td class="entry" headers="d892172e53" data-title="Description">Token identifying the next page, or <samp class="codeph apex_code"><span class="keyword">null</span></samp> if there isn’t a next page.<p class="p">If you want to read more of the comments in search results, all the comments
                  in the thread are refreshed, not just the ones that match the search term. Avoid
                  using <samp class="codeph apex_code">nextPageToken</samp> until the comments are
                  refreshed.</p>
              </td>

              <td class="entry" headers="d892172e56" data-title="Available Version">28.0</td>

            </tr>

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

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

              <td class="entry" headers="d892172e53" data-title="Description">Connect REST API URL identifying the next page, or <samp class="codeph apex_code"><span class="keyword">null</span></samp> if there isn’t a next page.<p class="p" id="nextPageSearchLimit"><a name="nextPageSearchLimit"><!-- --></a>If you want to read more of the comments in search
                  results, all the comments in the thread are refreshed, not just the ones that
                  match the search term. Avoid using <samp class="codeph apex_code">nextPageUrl</samp> until the comments are refreshed.</p>
              </td>

              <td class="entry" headers="d892172e56" data-title="Available Version">28.0</td>

            </tr>

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

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

              <td class="entry" headers="d892172e53" data-title="Description">Token identifying the previous page, or <samp class="codeph apex_code"><span class="keyword">null</span></samp> if there isn’t a previous page.</td>

              <td class="entry" headers="d892172e56" data-title="Available Version">44.0</td>

            </tr>

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

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

              <td class="entry" headers="d892172e53" data-title="Description">Connect REST API URL identifying the previous page, or <samp class="codeph apex_code"><span class="keyword">null</span></samp> if there isn’t a previous page.</td>

              <td class="entry" headers="d892172e56" data-title="Available Version">44.0</td>

            </tr>

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

              <td class="entry" headers="d892172e50" data-title="Type">Integer</td>

              <td class="entry" headers="d892172e53" data-title="Description">Total number of published comments for the parent feed element.</td>

              <td class="entry" headers="d892172e56" data-title="Available Version">28.0</td>

            </tr>

          </tbody>

        </table>

#### See Also

- [ConnectApi.CommentsCapability](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_comments_capability.htm "If a feed element or comment has this capability, the context user can add a comment to it.")