---
schema_version: "1"
id: 39d87a6ca73dde79cd9bac6c440d9b8813701a5d88aa8ce6657594f80db25ae8
title: ConnectApi.PollAttachmentInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_PollAttachInput.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_PollAttachInput.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 313c606834f50669521752c994637534adcd7e1312d721facf5dc0874b8c8276
description: Attach a poll to a feed item.
---
# ConnectApi.PollAttachmentInput

Attach a poll to a feed item.

![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, use [ConnectApi.PollCapabilityInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_poll_capability.htm "Create, update, or vote on a poll on a feed element.").

Subclass of [ConnectApi.FeedItemAttachmentInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_FeedItemAtt.htm "Used to attach a file to a feed item.").

| Property | Type | Description | Available Version |
| --- | --- | --- | --- |
| pollChoices | [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.")<String> | The text labels for the poll items. Polls must contain between 2 to 10 poll choices. | 28.0–31.0 |