Imagine a sales representative is viewing an Opportunity and clicks a button to start a Flow. Salesforce should already know which Opportunity the user is working with. The user should not have to search for or select the same Opportunity again.
The same requirement is common in other Salesforce processes. For example, a support agent may open a Case and launch a guided Flow to create follow-up work. In this situation, the Flow needs to know exactly which Case the agent is working on.
This is where passing the current Record ID into a Salesforce Flow becomes useful.
I have used this pattern in multiple Salesforce implementations because it makes Screen Flows much easier for users.
Instead of asking users to manually search for a record, we can pass the current record’s unique Salesforce ID directly to the Flow.
Once the Flow receives the Record ID, it can use that ID to:
- Find the related record.
- Display record information on a Screen.
- Update the current record.
- Create related records.
- Create follow-up Tasks.
- Perform additional business logic.
In this step-by-step Salesforce tutorial, we will learn how to pass the current Record ID into a Screen Flow from a Salesforce record page.
By the end of this tu