SurveyInvitation
Represents the invitation sent to a participant to complete the survey.
Introduced in API version 40.0.
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort
- Description: The ID of the Experience Cloud site that you want to send the survey to.
- Relationship name: Community
- Relationship type: relationship
- Refers to: Network
- Type: reference
- Properties: Filter, Group, Nillable, Sort
- Introduced: API version 49.0
- Description: ID of the contact who received the invitation. This field is available in API v49.0 and later.
- Relationship name: Contact
- Relationship type: relationship
- Refers to: Contact
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort
- Description: The ID of the survey email branding object that’s associated with this invitation.
- Relationship name: EmailBranding
- Relationship type: relationship
- Refers to: SurveyEmailBranding
- Type: url
- Properties: Group, Nillable
- Description: The URL to the survey that is sent to participants. To query on this field, you need access to the associated Survey record.
- Type: datetime
- Properties: Create, Filter, Nillable, Sort, Update
- Description: The date and time that the survey invitation expires.
- Type: boolean
- Properties: Create, Defaulted on create, Filter, Group, Sort, Update
- Introduced: API version 42.0
- Description: Determines whether this is the default survey invitation to use when the survey is sent to participants.
- Default value: false
- Type: reference
- Properties: Filter, Group, Nillable, Sort
- Introduced: API version 49.0
- Description: ID of the lead who received the invitation. This field is available in API v49.0 and later.
- Relationship name: Lead
- Relationship type: relationship
- Refers to: Lead
- Type: string
- Properties: Create, Filter, Group, idLookup, Sort, Update
- Description: The name of the survey invitation that appears in the UI.
- Type: boolean
- Properties: Create, Filter, Update
- Description: Determines whether participants who don’t have a Salesforce account can complete the survey.
- Type: boolean
- Properties: Create, Filter, Update
- Description: Determines whether participants can access a copy of their responses after they complete the survey.
- Type: boolean
- Properties: Create, Filter, Update
- Description: Determines whether participants can complete the survey anonymously.
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort
- Description: ID of the participant if the participant is a Salesforce contact, user, or lead.
- Relationship name: Participant
- Relationship type: polymorphic
- Refers to: Contact, Lead, User
- Type: picklist
- Properties: Filter, Group, Restricted picklist, Sort
- Introduced: API version 44.0
- Description: The status of a participant’s response to the survey that’s associated with the survey invitation. Possible values include:
- Possible values:
- NotStarted — NotStarted — For an invitation with a
ParticipantID, it means that the recipient hasn’t opened the survey. For an invitation without theParticipantID, it means that none of the recipients have opened the survey. - Started — Started — For an invitation with a
ParticipantID, it means that the recipient opened the survey. For an invitation without theParticipantID, it means that the survey has been opened by at least one recipient. - Paused — Paused — For an invitation with a
ParticipantID, it means that the recipient has paused the survey. For an invitation without theParticipantID, it means that the survey has been paused by any one of the recipients. Paused isn’t available for invitations in which eitherOptionsAllowParticipantAccessTheirResponseorOptionsCollectAnonymousResponseis true. - PartiallyCompleted — PartiallyCompleted — For an invitation with a
ParticipantIDfield, it means that the recipient has partially completed the survey. For an invitation without theParticipantIDfield, it means that at least one recipient has partially completed the survey. Available in API version 63.0 and later. - Completed — Completed — For an invitation with a
ParticipantID, it means that the recipient has submitted the survey. For an invitation without theParticipantID, it means that the invitation has been submitted by at least one recipient.
- NotStarted — NotStarted — For an invitation with a
- Type: reference
- Properties: Create, Filter, Group, Sort
- Description: ID of the survey that’s sent in the invitation.
- Relationship name: Survey
- Relationship type: relationship
- Refers to: Survey
- Type: string
- Properties: Filter, Group, Nillable, Sort
- Introduced: API version 43.0
- Description: A unique user ID that’s added to a survey invitation generated for a contact, lead,or user.
- Type: reference
- Properties: Filter, Group, Nillable, Sort
- Introduced: API version 49.0
- Description: ID of the user who received the invitation. This field is available in API v49.0 and later.
- Relationship name: User
- Relationship type: relationship
- Refers to: User
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.
-
SurveyInvitationChangeEvent: Introduced in API version 62.0.