---
schema_version: "1"
id: b3cd4a3e060f6c4efe2a922aa5bcf453d3b77fbd173e828929480ea32d6a16b6
title: SurveyQuestionResponse
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_surveyquestionresponse.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_surveyquestionresponse.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 52f667785cd24f74cc8721b2562b5306f61e77df9157f215a5a7b23d4eba7a1e
description: Represents a participant’s answer to a specific question.
---
# SurveyQuestionResponse

Represents a participant’s answer to a specific question.

## Supported Calls

describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

You can’t define custom fields for the SurveyQuestionResponse object using the Object Manager.

## Fields

| Field | Details |
| --- | --- |
| ChoiceValue | 
Type

textarea

Properties

Filter, Nillable, Sort

Description

Response provided by a participant for the following question types:

- Multiple choice
- Picklist
- Radio
- Ranking





 |
| Datatype | 

Type

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

The data type of the question response. Possible values are:

- Boolean This value is available in API v49.0 and later.
- Date
- Double
- Int
- Number
- String





 |
| DateTimeValue | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Response provided by a participant for a question of the type date time.



 |
| DateValue | 

Type

date

Properties

Filter, Group, Nillable, Sort

Description

Response provided by a participant for a question of the type date.



 |
| InvitationId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The ID of the SurveyInvitation that was sent to the survey participant.



 |
| IsTrueOrFalse | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Response provided by a participant for a question type which has only two possible values: True and False.



 |
| NumberValue | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

Response provided by a participant for the following question types:

- Net Promoter Score (NPS)
- Rating
- Score
- Slider





 |
| QuestionChoiceId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The ID of SurveyQuestionChoice that a participant chose in response to a question.



 |
| QuestionId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The ID of the SurveyQuestion that a participant provided an answer for.



 |
| Rank | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

Rank provided by a participant for an answer choice for the ranking question type.



 |
| ResponseId | 

Type

reference

Properties

Filter, Group, Sort

Description

The ID of the SurveyResponse that is the parent of this SurveyQuestionResponse.



 |
| ResponseShortText | 

Type

string

Properties

Filter, Group, idLookup, Sort

Description

Up to the first 250 characters of the response provided by a participant for a text type question.



 |
| ResponseValue | 

Type

textarea

Properties

Nillable

Description

Response provided by a participant for a question.



 |
| SurveyVersionId | 

Type

reference

Properties

Filter, Group, Sort

Description

The ID of the SurveyVersion that the response belongs to.



 |

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[SurveyQuestionResponseChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.")

Change events are available for the object.