Loading

Einstein Next Best Action: Cannot get Recommendation ID from "Recommendation Strategy" Flow

Date de publication: Aug 27, 2025
Description
This article explains why the Record ID of an approved recommendation cannot be retrieved via the recommendationId variable in an Einstein Next Best Action Strategy Flow, and how to correctly pass the ID to a subsequent flow using an input variable.
Résolution
When using a Recommendation Strategy flow, the approved recommendation's record information is passed to a record variable named inputRecommendation, not a text variable named recommendationId.

Therefore, the flow that is invoked upon approval must be configured to receive this record variable.
 
Configuration Steps
1. Open the flow that is invoked when the recommendation is accepted in Flow Builder.
2. From the Toolbox, click [New Resource] and create a variable with the following settings:
Resource Type: Variable
API Name: inputRecommendation
Data Type: Record
Object: Recommendation
Availability Outside the Flow: Check [Available for input].
3. Click Done to save.
4. Within the flow, can retrieve the ID of the accepted recommendation from the created inputRecommendation record variable (e.g., {!inputRecommendation.Id}).
Numéro d’article de la base de connaissances

005132979

 
Chargement
Salesforce Help | Article