Passing data to and from your flows
Input Variables
When creating a flow, add input variables to pass data into your flow. This lets your flow access context about the message.
Available input variables include:
- relatedRecordId - Text - The ID of the message's related Salesforce record.
- messageTypeDeveloperName - Text - The unique api name of the message type configuration.
- messageActionAPIName- Text - The unique api name of the selected Act On It action.
- inboxEmailBody – Text - The body text of the email (if launched from email side panel).
- inboxEmailFromAddress - Text – The “from” address of the email (if launched from email side panel).
- messageGroupId - Text - The ID of the parent message record.
Make sure to check “Available for Input” for each variable in your flow:

Output Variables
Also add output variables to pass data back out of your flow:
- closeOnCompletion - Boolean - Closes a screen flow automatically after finishing.
- navigateToRecordId - Text - Redirects the user to a Salesforce record.
- isSuccess - Boolean - Denotes if the action succeeded (auto-launch flows).
- errorMessage - String - Custom error message string.
- successMessage - String - Custom success message string.
Check “Available for Output” for each output variable added:
