Add fields to Salesforce Flow (Summer ’21)
Coming in the Salesforce Summer ’21 release is a new way to add fields to a flow screen element.
Instead of manually configuring and adding new fields to a Screen element, you can use the new Fields selector.
![](https://certifycrm.com/wp-content/uploads/2021/04/image-96-1024x633.png)
Now, before you get too excited about this there are two conditions:
- You need to be using Summer ’21 edition
- You need to have a variable representing a single record
This is a beta feature in Salesforce Summer ’21 which is available in pre-release orgs now, in preview orgs from May 7 and in your production orgs between May 15 and June 12.
Being a beta feature means you can test it in your sandboxes but it is not recommended for production use.
The second condition is having a variable that represents a single record. Let’s take a look at what this means:
Here is a simple screen flow that has a Get Records element:
![](https://certifycrm.com/wp-content/uploads/2021/04/image-97.png)
The element is configured to only get the first record (so it meets the condition of a variable containing a single record). It does this by passing in recordId (the ID of the page we started this flow from).
![](https://certifycrm.com/wp-content/uploads/2021/04/image-98.png)
Next, we add a Screen element:
![](https://certifycrm.com/wp-content/uploads/2021/04/image-99.png)
The new Fields (beta) function is now available:
![](https://certifycrm.com/wp-content/uploads/2021/04/image-100.png)
Select the Fields (Beta) tab (1) and then in the Record Variable field (2), specify the record variable that contains the fields we want:
![](https://certifycrm.com/wp-content/uploads/2021/04/image-101.png)
The available fields are now displayed, separated into Required Fields and the regular fields:
![](https://certifycrm.com/wp-content/uploads/2021/04/image-102.png)
The available fields can now be dragged across to the screen element. No longer do you have to manually create and configure new fields!
![](https://certifycrm.com/wp-content/uploads/2021/04/image-103-1024x633.png)
You will need to add an Update or Create records element to update or create new records – but at least the creation of new fields on a screen is simplified.
Thanks for the write up Daryl!
Good