Survey

Represents a survey.

Introduced in API version 40.0.

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

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

  • Type: reference
  • Properties: Filter, Group, Nillable, Sort
  • Introduced: API version 42.0
  • Description: The ID of the survey version currently activated.
  • Relationship name: ActiveVersion
  • Relationship type: relationship
  • Refers to: SurveyVersion
  • Type: textarea
  • Properties: Nillable
  • Introduced: API version 41.0
  • Description: The description of the survey. This field isn’t visible in the UI.
  • Type: string
  • Properties: Filter, Group, Sort
  • Description: The survey’s unique API name.
  • Type: boolean

  • Properties: Defaulted on create, Filter, Group, Sort

  • Introduced: API version 63.0

  • Description:

    Indicates whether to save the partial responses for the survey (true) or not (false).

    The default value is false.

  • Default value: false

  • Type: reference
  • Properties: Filter, Group, Nillable, Sort
  • Introduced: API version 42.0
  • Description: The ID of the most recent version of this survey.
  • Relationship name: LatestVersion
  • Relationship type: relationship
  • Refers to: SurveyVersion
  • Type: string
  • Properties: Filter, Group, idLookup, Sort
  • Description: The name of the survey that appears in the UI. This field is read-only from API version 50.0.
  • Type: string

  • Properties: Filter, Group, Nillable, Sort

  • Introduced: API version 49.0

  • Description:

    The namespace prefix that is associated with this object. Each Developer Edition org that creates a managed package has a unique namespace prefix. Limit: 15 characters. You can refer to a component in a managed package by using the namespacePrefix__componentName notation.

    The namespace prefix can have one of the following values.

    • In Developer Edition orgs, NamespacePrefix is set to the namespace prefix of the org for all objects that support it, unless an object is in an installed managed package. In that case, the object has the namespace prefix of the installed managed package. This field’s value is the namespace prefix of the Developer Edition org of the package developer.
    • In orgs that are not Developer Edition orgs, NamespacePrefix is set only for objects that are part of an installed managed package. All other objects have no namespace prefix.
  • Type: picklist

  • Properties: Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort

  • Introduced: API version 46.0

  • Description:

    Type of the survey. The default value is Survey.

    Possible values are:

    • ASSESSMENT — Survey type for sales enablement teams.
    • BASIC — Survey with a question page with like or dislike, long text, multiple selection, NPS, rating, short text, and single selection questions, and without inserted participant responses, display logic, and page branching logic.
    • SURVEY — Survey with all the available features.
  • Type: int
  • Properties: Filter, Group, Nillable, Sort
  • Description: The number of versions of the survey.

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.