Sample Flow: Give Guest Users Access to Create Records

In this sample flow, the guest user enters feedback and the flow stores it in a custom object record. The guest user doesn’t have access to read the record after creation.

Before you give record creation access to guest users, read Give Guest Users Access to Create Records.

The sample flow with numbered elements

This scenario uses the Feedback__c custom object to store feedback from guest users. A Feedback__c custom object has these fields, listed in alphabetical order:

Email__c: Required. The guest user’s email address. Data type: Email

Score__c: Required. The feedback score entered by the guest user. Possible values are 0, 1, 2, 3, 4, 5.

Additional_comments__c: Any additional feedback entered by the guest user. Data type: Long Text Area

Because the flow doesn’t require read access to any records and we’re not relying on object permissions, set the How to Run the Flow setting to System Context without Sharing—Access All Data.

The first element in the flow is a screen that displays these components:

  • An Email component for the user’s email address.
  • A Slider component for the user’s feedback score, set to allow whole numbers from 0 to 5.
  • A Long Text Area component for any additional comments.

The next element is a Create Records element that creates a Feedback__c record.

The final screen element displays text to thank the user for their feedback.

See Also