Configure Screens and Get Records Elements Without Creating Variables

When you add a screen component or a Get Records element to a flow, we automatically create variables to store the output values. You no longer have to create and assign variables, but you can still opt to do so. Get Records elements and screen components that were created before Winter ’20 aren’t affected by this change.

Where: This change applies to Lightning Experience and Salesforce Classic in Essentials, Professional, Enterprise, Performance, Unlimited, and Developer editions.

How: When you’re setting a field that supports variables, automatically created variables show up as available options just like other variables in your flow.

To use values from a screen component later in the flow, start typing the API name of the screen component.Assignment element, showing screen component values being assigned to fields in a record variable

To use values from a Get Records element later in the flow, start typing the API name of the element.Loop element, showing how to select values from a Get Records element as the collection variable for the loop to iterate over

If you don’t want to use automatically created variables, select Manually assign variables (advanced).Get Records element, showing the fields that appear after one selects Manually assign variables (advanced)