# 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.

:::important
Before you give record creation access to guest users, read [Give Guest Users Access to Create Records](/docs/platform/communities-dev/guide/communities-dev-give-guest-users-access-to-create-records.md).
:::

![The sample flow with numbered elements](https://a.sfdcstatic.com/developer-website/sfdocs/platform/media/communities-dev/guest_users_flow_create_records.png)

## Custom Feedback\_\_c Object

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

## Flow Configuration

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**.

## Feedback Form (1)

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.

## Create Records (2)

The next element is a Create Records element that creates a Feedback\_\_c record.

## End Screen (3)

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

**See Also**

- [*Salesforce Help*: Which Context Do Flows Run In?](https://help.salesforce.com/articleView?id=flow_distribute_context.htm)
- [*Salesforce Help*: Flow Elements](https://help.salesforce.com/articleView?id=flow_ref_elements.htm)
- [*Salesforce Help*: Allow Guest Users to Access Flows](https://help.salesforce.com/articleView?id=rss_flow_guestuser.htm)
