Notes
Making a variable available for input in Salesforce Flow allows you to pass data into the Flow when it is triggered. This is useful when you want the Flow to be dynamic and context-sensitive. For example:
- Trigger from a Record Page: When a Flow is invoked from a record page (like using a button or Quick Action), you can pass the
recordId
to the Flow, so it knows which record to operate on.
- External Data Integration: When calling a Flow from an Apex class or an external system, you can pass parameters into the Flow to customize its behavior based on external data.
- User Input: When users provide data via a Screen Flow, the input values can be passed as variables, allowing you to use those values in the Flow logic.
In essence, allowing input variables makes the Flow flexible, reusable, and adaptable to different use cases.