Given Case object with a three level dependent picklist structure:
Case.Reason__c
(picklist)Case.Reason_Detail__c
(dependent picklist controlled byCase.Reason__c
)Case.Reason_Subdetail__c
(dependent picklist controlled byCase.Reason_Detail__c
)
Given a record-triggered flow
- That executes upon deletion of the Case and uses the Send Email action
Given a text template used in the Send Email action that references each of the three aforementioned Case fields
Case Reason: {!$Record.Reason__c}
Case Reason Detail: {!$Record.Reason_Detail__c}
Case Reason Subdetail: {!$Record.Reason_SubDetail__c}
When a Case is deleted
- where all three levels of the picklist hierarchy are NULL
Then, the Flow aborts with ...
Error element Alert_stakeholders (FlowActionCall).
The flow failed to access the value for $Record.Reason_SubDetail__c because it hasn't been set or assigned.
I don't get this. The $Record
flow variable has access to all of the fields in the deleted case. And, if the Case.Reason_Subdetail__c
has a value, the flow works fine and renders the email as expected.