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

This article explains why the Record ID of an approved recommendation cannot be retrieved via a recommendationId variable in an Einstein Next Best Action Recommendation Strategy flow, and how to correctly pass the ID to the flow that runs on acceptance.

Root Cause

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, you can now retrieve the ID of the accepted recommendation from the inputRecommendation record variable (e.g., `{!inputRecommendation.Id}`).

With this configuration, the flow correctly receives the recommendation record on acceptance, giving you access to its ID and other fields.

Numéro d’article de la base de connaissances

005132979

 
Chargement
Salesforce Help | Article