When using the Flowscreen lightning component for Dependent picklists I am encountering an error. The components is configured:
- Object API Name - the object where the picklists reside
- Picklist 2 API Name aka the dependent picklist
- Picklist 1 API Name aka the controlling picklist
- Picklist 1 value is a variable set by the record lookup
- Picklist 2 value is a variable set by the record lookup
When Running the flow:
- The Controlling Picklist (Picklist 1 API Name) is populated by the Picklist 1 Value set by the variable from the lookup.
- The Dependent Picklist (Picklist 2 API Name) is not populated by the Picklist 2 value set in the lookup.
- There is an error displayed at the bottom of the flow:
"This page has an error. You might just need to refresh it. Error in $A.getCallback() [Cannot read property 'User Account Reset(s)' of null] Callback failed: serviceComponent://ui.interaction.runtime.components.controllers.DependentPicklistsController/ACTION$getDependencies Failing descriptor: {flowruntime:dependentPicklists}"
FYI - Winter 19 added Dependent picklists for Flowscreens as a lightning component.
Release Notes: https://releasenotes.docs.salesforce.com/en-us/winter19/release-notes/rn_forcecom_flow_design_screencmp_dependentpicklists.htm Release Readiness Live: https://www.youtube.com/watch?v=PSams5o8O10