3 answers
Hello,Ok i see. i think i know why it is failing : lineRelatedRecords.get(obj.Name) returns a List<membership_sales_lines__c>, which is a List of values. Implement logic to get any particular value from List if you are looking for.if you are just looking for first item use index [0] as below : obj.Payment_status__c = lineRelatedRecords.get(obj.Name)[0].Payment_status__c Thanks