In Salesforce, the Record Choice Set refers to a collection or set of records that can be used as options within a picklist field on an object. In this Salesforce tutorial, we will learn to use and create a Record Choice Set in a Salesforce Screen Flow.
Use Record Choice Set in a Salesforce Screen Flow
In this scenario, we will create a Screen flow to create an Opportunity record. In the screen flow, we will create a flow Resource Record choice set for the Opportunity Accounts.
To create the Screen flow, navigate to the Salesforce Setup page and follow the steps below.
1. On the Setup page, go to the Quick Find box, search, and select Flows under Process Automation.
2. In the Flows setup window, click on the button New Flow.
3. Select the option Screen Flow and click the Create button.

4. Add a Screen element to the flow and enter the Label and API Name for the Screen element.

5. Add the text component to the screen region and label it as Opportunity Name.

6. Add a Date Component to the screen and label it as the Close Date.

7. Add a Picklist component to the screen and label it as a Stage Name; then, in the Choice field, click on New Choice Resource.

8. Enter the below fields for the resource of the picklist Stage Name.
- Enter the Resource Type as Picklist Choice Set.
- Enter the API Name as Opportunity_Stage and Object as Opportunity.
- Select the Data type as Picklist and Field as Stage Name.
- At last, click Done.

9. Now again, add a Picklist field to the screen and label it as Account Name. In the Choice field, click on New Choice Resource.
10. Enter the below fields for the new resource to create a Record Choice set.
- Select the Record Type as Record Choice Set.
- This record set will consist of Account records, so I have entered the API Name Opportunity_Account.
- Select the Object as Account.
- In the choice set, to display the active accounts I have selected field as Active_C, Operator as Equals, and Value as Yes. This condition will display only active accounts.

11. Scroll down to the section Configure Each Choice and select the Choice label as Name, Data Type as Text, and Choice Value as ID. After this, click on the Done button.

12. Now add a Create Record element to the flow. After this, enter the Label and API Name.
Under the heading, How to set the Record Fields, select the option Use separate resources and literal values. Then, in the Object field, select Opportunity.

13. In the section, Set Field Values for the Opportunity, map the below fields with their values.
| Field | Value |
| AccountId | Account_Name |
| CloseDate | Close_Date |
| Name | Opportunity_Name |
| StageName | Stage_Name |
An opportunity record typically has a lookup relationship with an Account record. This relationship is defined by the AccountId field on the Opportunity object, which stores the ID of the related Account.

14. Now save the flow by entering the Flow Label and Flow API label, then click Save.

Now, the Screen flow is created with a Record Choice Set to create an opportunity record.
Test and Debug the Screen Flow
Follow the below steps to test and debug the created screen flow.
1. Click on the Debug button at the top.

2. In the Debug Flow window, click on the Run button.

3. Enter the opportunity details in the fields. Here, In the field Account Name we can see the record choice set of the opportunity accounts.
After entering the fields, click Next.

4. Now, if the flow runs successfully, it will create an Opportunity record.
5. Navigate to the Opportunity tab, and there you will see the record that is created with the screen flow.
As we can see, the record is created with the screen flow in which we have used the Flow Resource: Record Choice Set.
This way, we can follow the above steps to add and create a flow resource Record Choice set to the Salesforce screen flow.
Conclusion
In Salesforce, a Record Choice Set in Screen Flow allows users to select specific records, which appear according to the criteria applied.
By following the above steps, you might have understood the process of creating a record choice set flow resource and using that record choice set in the screen flow.
You may like to read:
- Email-to-Lead Using Salesforce Flow – Complete Guide
- How to Promote Existing Multi-select Picklist Field Value as Global Value Set on Salesforce
- How to deactivate global picklist value in Salesforce
- Get Current Record ID in Salesforce Flows
- How to Call Apex Class From Salesforce Flow
I am Bijay Kumar, the founder of SalesforceFAQs.com. Having over 10 years of experience working in salesforce technologies for clients across the world (Canada, Australia, United States, United Kingdom, New Zealand, etc.). I am a certified salesforce administrator and expert with experience in developing salesforce applications and projects. My goal is to make it easy for people to learn and use salesforce technologies by providing simple and easy-to-understand solutions. Check out the complete profile on About us.