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.QuestionAndAnswersCapabilityInput

Create or edit a question feed element or set the best answer of the existing question feed element.

This class is a subclass of ConnectApi.FeedElementCapabilityInput.

Property Type Description Required or Optional Available Version
bestAnswerId String A comment ID to use as a best answer for a question feed element. The best answer comment must already exist on the question feed element. Required to update a feed element.

Not supported when posting a feed element.

32.0
questionTitle String Title for a question feed element.

To edit the title of a question, use updateFeedElement(communityId, feedElementId, feedElement). Editing question titles is supported in version 34.0 and later.

Required to post a feed element.

Not supported when updating a feed element.

32.0