---
schema_version: "1"
id: 046f6b905184ba20afa45579699d6dd957d21db1ea47b833e1aad3f08a5c732f
title: ConnectApi.PollCapability
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_poll_capability.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_poll_capability.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 651d82cc74b3befb71380258079e5138b048970141e8f3d2cf48bb89057c44a9
description: If a feed element has this capability, it includes a poll.
---
# ConnectApi.PollCapability

If a feed element has this capability, it includes a poll.

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.").

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| choices | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.​FeedPollChoice](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_FeedPollChoice.htm#apex_connectapi_output_FeedPollChoice "Feed poll choice.")\> | Collection of poll choices that make up the poll. | 32.0 |
| myChoiceId | String | 18-character ID of the poll choice that the context user has voted for in this poll. Returns null if the context user has not voted. | 32.0 |
| totalVoteCount | Integer | Total number of votes cast on the feed poll element. | 32.0 |

#### 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.")