---
schema_version: "1"
id: 96dbb4bbf30bd694611e9b50834ffdfd618210cab8ed5096000a07d100433cdf
title: ConnectApi.VotePage
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_vote_collection.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_vote_collection.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 63b3adcfc0a27697b0667ef71563a926bfbeadab004da82c40f2d838d12b56a5
description: A page of upvotes or downvotes on a feed element or comment.
---
# ConnectApi.VotePage

A page of upvotes or downvotes on a feed element or comment.

<table class="featureTable sort_table" summary="">
          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d1262681e27">Property Name</th>
              <th class="featureTableHeader vertical-align-top " id="d1262681e29">Type</th>
              <th class="featureTableHeader vertical-align-top " id="d1262681e31">Description</th>
              <th class="featureTableHeader vertical-align-top " id="d1262681e33">Available Version</th>
            </tr>
          </thead>
          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d1262681e27" data-title="Property Name"><samp class="codeph apex_code">currentPageToken</samp></td>
              <td class="entry" headers="d1262681e29" data-title="Type">Integer</td>
              <td class="entry" headers="d1262681e31" data-title="Description">Token identifying the current page.</td>
              <td class="entry" headers="d1262681e33" data-title="Available Version">42.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1262681e27" data-title="Property Name"><samp class="codeph apex_code">currentPageUrl</samp></td>
              <td class="entry" headers="d1262681e29" data-title="Type">String</td>
              <td class="entry" headers="d1262681e31" data-title="Description">Connect REST API URL identifying the current page.</td>
              <td class="entry" headers="d1262681e33" data-title="Available Version">42.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1262681e27" data-title="Property Name"><samp class="codeph apex_code">items</samp></td>
              <td class="entry" headers="d1262681e29" 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;<a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_vote.htm#apex_connectapi_output_vote" title="An upvote or downvote on a feed element or comment."><samp class="codeph apex_code">ConnectApi.​Vote</samp></a>&gt;
              </td>
              <td class="entry" headers="d1262681e31" data-title="Description">
                <span class="ph" id="items"><a name="items"><!-- --></a>Collection of users and their upvotes or downvotes.</span>
                <p class="p" id="mergeLikeDedupe"><a name="mergeLikeDedupe"><!-- --></a>Upvotes include likes and upvotes. For example, if a post
                  receives five likes and three upvotes, the number of upvotes is eight. For this
                  reason, the collection of users and their upvotes also includes users who liked
                  the post or comment. If a user both liked and upvoted a post, they appear only
                  once in the collection.</p>
              </td>
              <td class="entry" headers="d1262681e33" data-title="Available Version">42.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1262681e27" data-title="Property Name"><samp class="codeph apex_code">nextPageToken</samp></td>
              <td class="entry" headers="d1262681e29" data-title="Type">Integer</td>
              <td class="entry" headers="d1262681e31" 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.</td>
              <td class="entry" headers="d1262681e33" data-title="Available Version">42.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1262681e27" data-title="Property Name"><samp class="codeph apex_code">nextPageUrl</samp></td>
              <td class="entry" headers="d1262681e29" data-title="Type">String</td>
              <td class="entry" headers="d1262681e31" 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.</td>
              <td class="entry" headers="d1262681e33" data-title="Available Version">42.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1262681e27" data-title="Property Name"><samp class="codeph apex_code">previousPageToken</samp></td>
              <td class="entry" headers="d1262681e29" data-title="Type">Integer</td>
              <td class="entry" headers="d1262681e31" 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="d1262681e33" data-title="Available Version">42.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1262681e27" data-title="Property Name"><samp class="codeph apex_code">previousPageUrl</samp></td>
              <td class="entry" headers="d1262681e29" data-title="Type">String</td>
              <td class="entry" headers="d1262681e31" 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="d1262681e33" data-title="Available Version">42.0</td>
            </tr>
            <tr>
              <td class="entry" headers="d1262681e27" data-title="Property Name"><samp class="codeph apex_code">total</samp></td>
              <td class="entry" headers="d1262681e29" data-title="Type">Long</td>
              <td class="entry" headers="d1262681e31" data-title="Description">
                <span class="ph" id="total"><a name="total"><!-- --></a>Total number of upvotes or downvotes for the feed element or comment.</span>
                <p class="p" id="mergeLikeUpvote"><a name="mergeLikeUpvote"><!-- --></a>The number of upvotes includes the number of likes and
                  upvotes. For example, if a post receives five likes and three upvotes, the total
                  number of upvotes is eight. If a user both liked and upvoted a post, we count that
                  as two upvotes.</p>
              </td>
              <td class="entry" headers="d1262681e33" data-title="Available Version">42.0</td>
            </tr>
          </tbody>
        </table>