Loading

Unable to Access Salesforce Survey as Guest User – Merge Field Permission Error

Udgivelsesdato: May 4, 2026
Beskrivelse

When a Guest User tries to access a Salesforce Survey sent via email, they receive the following error message:

"We couldn't load the survey. Contact the survey creator for help."

Additionally, a Flow error is generated indicating that the survey Flow — running under the Guest User profile — fails to find a SurveySubject record. This occurs because the survey uses merge fields, and the Guest User profile does not have permission to access the Survey Subject object or any related objects that the underlying Flow queries.

Løsning

Root Cause

This issue occurs because of how Salesforce Surveys handle merge fields. When a survey is created with merge fields, Salesforce automatically generates a Flow that retrieves merge field values by querying the Survey Subject object. The Guest User profile — which executes the Flow for unauthenticated users — does not have permission to access this object or its related objects, causing the Flow to fail and preventing the survey from loading.

Steps to Fix – Update Merge Field Variables Setting

To allow Guest Users to access Salesforce Surveys sent via email when merge fields are used, update the Merge Field Variables setting to use System Context (which ignores record-level access):

  1. Navigate to the affected survey in Salesforce.
  2. Click Open Latest Version.
  3. If the survey is currently activated, go to the View tab and select Create New Version from the dropdown menu in the top-right corner.
  4. Open Advanced Settings and click Merge Field Variables.
  5. Set Merge Field Variables to System Context – Ignore record-level access.
  6. Save and activate the survey.

After applying these changes, Guest Users can access survey links sent via email without encountering access errors.

Vidensartikelnummer

005166871

 
Indlæser
Salesforce Help | Article