---
schema_version: "1"
id: b92c1f4bf08c664baac508c773da03148741ccc448bf8f7cc19de29e096ec8e6
title: ConnectApi.FeedPoll
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_FeedPoll.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_FeedPoll.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e4e62bf6e4262616302ea232f7b8eff661175b314915417947f560edf34eaea3
description: Attachment of ConnectApi.FeedItem objects where the type property is PollPost.
---
# ConnectApi.FeedPoll

Attachment of ConnectApi.FeedItem objects where the type property is PollPost.

![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.PollCapability](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_poll_capability.htm "If a feed element has this capability, it includes a poll.") 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.").

| 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.")\> | List of choices for poll. | 28.0–31.0 |
| myChoiceId | String | ID of the poll choice that the context user has voted for in this poll. Returns null if the context user hasn’t voted. | 28.0–31.0 |
| totalVoteCount | Integer | Total number of votes cast on the feed poll item. | 28.0–31.0 |