Loading
Salesforce Enforces New Security Requirements in Summer 2026Read More
Integration with Surveys

Integration with Surveys

Integrate surveys into the events workflow so that users can collect structured feedback and compliance information at the right point in the event lifecycle.

Required Editions

Available in: Lightning Experience
Available in: Enterprise and Unlimited Editions with Life Sciences Cloud, Life Sciences Cloud for Customer Engagement Add-on license, and the Life Sciences Customer Engagement managed package.
User Permissions Needed
To create and edit surveys: Life Sciences Commercial Admin permission set

Surveys can be shared through territory-based association or by direct association with the event.

In the territory-based association, the survey is shared via Engagement Context records.

In the direct sharing, the survey invitation containing the subject is used to directly populate the event ID with which the survey is associated.

For territory-based surveys, make sure you set up territories and assign users to the territory. For more info, see Set Up Sales Territories for Life Sciences Cloud in Get Your Org Ready for the Customer Engagement Managed Package.

For the survey to be visible in the component, the managed event should be in the same state as configured in the workflow path, and the current user should be an organizer or coorganizer of the managed event. For territory-based sharing, make sure the territory switcher is the same as the territory associated with the survey subject.

Create Managed Event Surveys

Create surveys for managed events and configure them for direct or territory-based sharing.

  1. Create a survey for direct sharing.
    1. From the App Launcher, find and select Surveys.
    2. Click New.
    3. On the View page, in the New survey modal, add the survey name.
    4. Select Offline Mobile Survey.
    5. Click Continue.
    6. Add a page, and fill out the survey questions as needed.
    7. Save your changes.
    8. Add a survey name, such as, Event Feedback.
    9. Activate your survey.
  2. From the related list of the survey you created, click Survey Invitation, and copy the ID.
  3. Create the survey subject with the survey invitation ID as the parent invitation ID and the managed event ID as the subject.
    1. From the Developer Console, run an Apex script to create a survey subject record. Use this script as a reference, and replace the ID values below with your own record IDs before running the script.
      
      SurveySubject s = new SurveySubject();
      s.ParentId = '0KiEU000000K3L70AK'; // SurveyInvitationId
      s.SubjectId = '1POEU000000uMAy4AM'; // Mng Event Id
      s.Name = 'surveySubject';
      insert s;
      
  4. To share a survey with a territory, create a survey engagement context with the survey invitation ID as the parent invitation ID and the territory ID as the subject.
    1. Run an Apex script to create a survey engagement context record. Use this script as a reference, and replace the ID values below with your own record IDs before running the script.
      
      SurveyEngagementContext s = new SurveyEngagementContext();
      s.ContextType = 'MngEvent';
      s.SurveyInvitationId = '0KiEU000000Cyej0AC'; //survey invitation id from step3
      s.Name = 'SurveyEngagementTerritory';
      insert s;
      
 
Loading
Salesforce Help | Article