---
schema_version: "1"
id: 309066f54999210bfebd93e282b6e50c8ce9edb0e7f4979d1ea01676bf155a59
title: ConnectApi.QuestionAndAnswersCapability
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_question_and_answers_capability.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_question_and_answers_capability.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d2d82b54065867b4ad150e5dc9983b6fecf1e090a41049f88e4fa8f1f531550a
description: If a feed element has this capability, it has a question and comments on the feed element are answers to the question.
---
# ConnectApi.QuestionAndAnswersCapability

If a feed element has this capability, it has a question and comments on the feed element are answers to the question.

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 |
| --- | --- | --- | --- |
| bestAnswer | [ConnectApi.​Comment](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_comment.htm#apex_connectapi_output_comment "A comment.") | Comment selected as the best answer for the question. | 32.0 |
| bestAnswer​SelectedBy | [ConnectApi.​UserSummary](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_user_summary.htm#apex_connectapi_output_user_summary "User summary.") | User who selected the best answer for the question. | 32.0 |
| canCurrentUser​SelectOrRemove​BestAnswer | Boolean | Indicates whether the context user can select or remove a best answer (true) or not (false). | 32.0 |
| candidateAnswers | [ConnectApi.CandidateAnswersStatus](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_candidate_answers_status.htm "The status of candidate answers on a feed element.") | Status of candidate answers for the question. | 41.0 |
| escalatedCase | [ConnectApi.​Reference](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_reference.htm "Reference to a record.") | If a question post is escalated, this is the case to which it was escalated. | 33.0 |
| questionTitle | String | Title for the question. | 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.")