---
schema_version: "1"
id: ca08df63be827cde382ff0547d3045185b8a7fb3cedc13bcfad30f6fc364b364
title: SurveyVersion
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_surveyversion.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_surveyversion.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d0879485fe183fc06143b3c47c7a209f111c3ca2e66d676f8c93dc25beff09fa
description: Represents a version of a survey.
---
# SurveyVersion

Represents a version of a survey.

## Supported Calls

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

![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 SurveyVersion object using the Object Manager.

## Fields

| Field Name | Details |
| --- | --- |
| BrandingSetId | 
Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The ID of the branding set associated with the survey version.



 |
| Description | 

Type

textarea

Properties

Nillable

Description

The description of this survey version.



 |
| IsTemplate | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether the survey version is a template. Template surveys are automatically shared with all users in your Salesforce org.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date and time that the current user last viewed a record related to the survey version.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed the survey version.



 |
| Name | 

Type

string

Properties

Filter, Group, Sort

Filter, Group, Sort

Filter, Group, idLookup, Sort

Description

The name of the survey that appears in the UI.



 |
| SurveyId | 

Type

reference

Properties

Filter, Group, Sort

Description

The ID of the survey associated with the survey version.



 |
| SurveyStatus | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

The status of the survey. Possible values include:

- Active
- Draft
- Obsolete
- InvalidDraft





 |
| VersionNumber | 

Type

int

Properties

Filter, Group, Sort

Description

The version number of the survey.



 |

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

[SurveyVersionChangeEvent](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.