Search code examples
salesforcesalesforce-lightningsalesforce-communities

how to get picklist in lightening flow based on specific record types of SObject - salesforce


My requirement -

  1. I have Case object and it contains Type as one filed ( it's data type is Picklist).
  2. I have 2 record types on case object ( a. InternalCase b. ExternalCase ) where these 2 record types have different picklist values .
  3. In Lightening flows i am trying to create resource where resource type is picklist and on Case object
  • here where i am getting all picklist values of case irrespective of Record Type
  • But i want picklist of specific Record Type values only in lightening flows .

is it possible in lightening flow ?

Thanks


Solution

  • It can be done by a custom implementation.

    We can implement a custom LWC component that takes object name, field name, and record type as parameters and generates a dynamic picklist based on the inputs.

    On selecting the picklist value, you can assign the same value to a flow variable.