Posts

Showing posts with the label record variable

Salesforce Fact #8 | pass entire record to flow

Besides passing the record Id, we can also pass the entire Sobject record to the flow from the record detail page. Let's say we have a flow in the Account record detail page and we want to pass the entire record to the flow. To do this, 1. Create one record variable in flow say accountRec and select the checkbox for Available for input. 2. After creating the flow, activate it. 3. While adding the flow in the record detail page using lightning app builder, an option will be given ('Pass all field values from the record into this flow variable') to populate the flow variable with the record. Select the option. 4. Now the record is available in the flow and we can access the fields like: {!accountRec.Industry} / {!accountRec.Name} etc.