LightningFlowComponents icon indicating copy to clipboard operation
LightningFlowComponents copied to clipboard

QuickChoice - v2.34 - Picklist datasource - Won't retain selected field in CPE

Open jimrae opened this issue 3 years ago • 3 comments

When configuring a quickchoice component to render a picklist filtered by record type (I have done this before and it worked, seems like a potential regression), I select Picklist for the datasource, Opportunity for the Object and StageName for the field, then, I save the screen component, and the Flow, and attempt to run a debug session. In the debug, no picklist values are returned, and in the console, I see the fieldName -> null.

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to a Screen Component in a flow
  2. Add a QUickchoice component 3.Select Picklist for Render, and Picklist for the Datasource
  3. In the Object and Field picker, select Opportunity for the Object, and StageName for the field.
  4. Save and run a test

Expected behaviour

WOuld expect the picklist to render values

Actual behaviour

Picklist is empty

Screenshots

image

jimrae avatar Jan 28 '22 05:01 jimrae

I am having the same issue. I tried several workarounds and am unable to resolve.

Jnew21 avatar Feb 01 '22 21:02 Jnew21

What are you selecting for the RecordTypeId?

ericrsmith35 avatar Feb 06 '22 18:02 ericrsmith35

@ericrsmith35 i am using virtually the identical pattern to the example on unofficialsf.com. I get the recordtypeid in a record picklist component. The value of that component sets the opprtid value for the quickchoice. My workaround was to edit the flow xml and manually add the attribute. After that, I got it to save.

jimrae avatar Feb 06 '22 21:02 jimrae