Pass In the Record When Launching a Flow from a Lightning Page or a Quick Action

It’s now much easier to pass records into your flows. Each quick action automatically passes the record into the flow’s record variable named “recordId”. In Lightning App Builder, a simple checkbox lets the Lightning page pass the record into a record variable in the flow.

Where: This change applies to Lightning Experience, Salesforce Classic, and all versions of the mobile app in Essentials, Professional, Enterprise, Performance, Unlimited, and Developer editions.

Why: Previously, passing records into a flow from a Lightning page or a quick action required extra configuration steps. For a quick action, you created a text variable named “recordId” and added a Get Records element to your flow. For a Lightning page, you created a text variable, configured Lightning App Builder to set that variable, and used a Get Records element. Now Lightning Flow does most of the work for you.

How: For a quick action, all you do now is create a record variable in your flow named “recordId” and ensure that it’s available for input.New Resource window showing a variable with API Name set to recordId, Data Type set to Record, and Available for input selected

For a Lightning page, simply select Pass all field values from the record into this flow variable in Lightning App Builder.Flow component in Lightning App Builder showing the “Pass all field values from the record into this flow variable” checkbox