Skip to main content

I'm trying to create a flow orchestration on opportunity product.  The orchestration gets triggered just fine but errors upon entry into the first stage with the error message:  

 

Error element VP_Sales_Approval (FlowOrchestratedStage).

Context Record ID: id value of incorrect type: 00k04000003oYd9AAE

 

I did notice that the id getting passed into the first stage is showing in the details of how the flow ran as a 15 digit ID (which I'm not sure if that matters as I've found it does in validation rules):

 

How the Interview Started

Orchestration Run ID: 0jE04000000Kz0R

Justin Soucy (0055b00000OTZXg) started the flow interview.

API Version for Running the Flow: 58

Some of this flow's variables were set when the interview started.

$Record = OpportunityLineItem (00k04000003oYd9)

 

And you can see in the screenshot that I'm using the opportunity product as the object in the start component.  So I'm not sure what the error message is trying to say since the Context record ID is an opportunity product ID and that's what the flow is built for.  Any ideas?

 

Orchestration on Opportunity Product Giving@* Salesforce Administrators * @Salesforce Flow Automation #Flownatics

3 answers
  1. Jun 14, 2023, 12:20 PM

    @Antoine Cabot it appears the error is based on the Context Record not being valid.  So a general question I have then is if OpportunityLineItem is a valid object to be used for flow orchestrator?  I know you can choose it in the entry criteria for an object that triggers an orchestration, but it seems to not like it when the ID gets passed into the "stage".

0/9000