---
schema_version: "1"
id: bb3a6eba19c639ea148ed11c6412bef5c79924ef8b8e8f8f046289c7a3f4322b
title: SurveySubject
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_surveysubject.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_surveysubject.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9c162a4be47c94e1ca32c69265044660cace0c5e066a135531f0ffe73c6bb2e4
description: Represents a relationship between a survey and another object, such as an account or a case.
---
# SurveySubject

Represents a relationship between a survey and another object, such as an account or a case.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

## Fields

| Field Name | Details |
| --- | --- |
| LastReferencedDate | 
Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the SurveySubject record was last referenced by another object.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when the current user last viewed the SurveySubject record.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The name of the SurveySubject record.



 |
| ParentId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

Unique identifier of the SurveyInvitation object or SurveyResponse object that is associated with this survey-object relationship.

Relationship Name

Parent

Relationship Type

Lookup

Refers To

SurveyInvitation, SurveyResponse



 |
| SubjectEntityType | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

Object that the survey is associated with. Possible values include:

- Account
- Asset
- Banker
- BranchUnit
- BranchUnitBusinessMember
- BranchUnitCustomer
- BusinessLicenseApplication
- BusinessMilestone
- Campaign
- CareProgram
- Case
- Claim
- ClaimParticipant
- Contact
- Employee
- Event
- Incident
- IndividualApplication
- InsurancePolicy
- InsurancePolicyParticipant
- Lead
- LearningItemSubmission—Available in API version 58.0 and later.
- LiveChatTranscript
- LoyaltyProgram
- LoyaltyProgramMember
- LoyaltyProgramPartner
- MaterialityStakeholder
- MessagingSession
- Opportunity
- Order
- PersonalLifeEvent
- Producer
- Product2
- Promotion
- RebateProgram
- RetailStore
- ServiceAppointment
- ServiceResource
- Solution
- Task
- TransactionJournal
- User
- VideoCall
- Visit
- VoiceCall
- VolunteerProject
- WorkOrder
- Custom Objects





 |
| SubjectId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The ID of the object that’s associated with the survey.



 |
| SurveyId | 

Type

reference

Properties

Filter, Group, Sort

Description

Unique identifier of the survey that’s associated with the record that’s represented by SubjectId.



 |
| SurveyInvitationId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Unique identifier of the survey invitation that's associated with another object.



 |
| SurveyResponseId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Unique identifier of the survey response that's associated with another object.



 |

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

[SurveySubjectChangeEvent](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.") (API version 62.0)

Change events are available for the object.