A dropdown component [label="Type"] has an invalid value for "value". All selected values must be present in the choiceValues array, but value was and choiceValues was 117; 118. how to handle null over here ...

a!localvariables(local!leadData: rule!TRO_qrtLead(leadId: 244).data,

local!credentiallingTypes: if(
a!isNullOrEmpty(
local!leadData['recordType!TRO Lead.fields.credentialingTypeLookupRefId]
),
{},
local!leadData['recordType!TRO Lead.fields.credentialingTypeLookupRefId]
),

a!dropdownField(
label: "Type",
choiceLabels: local!TRO Lookup.fields.label,
choiceValues: local!TRO Lookup.fields.lookupRefId,
placeholder: "---Select Credentialling Types---",
value: local!credentiallingTypes,
saveInto: local!credentiallingTypes
))

how to handle null over here ?

  Discussion posts and replies are publicly visible