Notes
In Salesforce Flow, recordId
is a special variable that holds the unique ID of the record currently being viewed or processed. It’s automatically populated when the Flow is launched from a record page, such as from a button or Quick Action.
You can use recordId
to:
- Retrieve Record Data: Use it to fetch data related to the specific record the Flow is triggered from, by passing it into a Get Records element.
- Update Records: Use
recordId
to update the record that triggered the Flow.
- Pass Information: When invoking an Apex class or passing data between Flows,
recordId
is used to pass the ID of the record being processed.
recordId
is key for linking the Flow to the correct record in your Salesforce environment.