Getting above error how to resolve .. as value is null ..
Discussion posts and replies are publicly visible
a!localvariables(local!leadData: rule!PRO_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 ))
try using this code
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:if(a!isNullOrEmpty( local!credentiallingTypes),null(), local!credentiallingTypes),saveInto: local!credentiallingTypes))
Please try to use this feature next time to make the code more readable.
thanks