Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ConnectApi.PollCapabilityInput

Create, update, or vote on a poll on a feed element.

This class is a subclass of ConnectApi.FeedElementCapabilityInput.

Property Type Description Required or Optional Available Version
choices List<String> The choices used to create a new poll. You must specify 2–10 poll choices for each poll. Required for creating a poll 32.0
myChoiceId String ID of an existing choice on the feed poll. Used to vote on an existing poll. Required for voting on a poll 32.0