In one of my methods, I'm getting an internal server error, when I'm trying to access one field value.
I guess it's because of the way I'm trying to access the field.
@AuraEnabled
public static string createABAData(List<ABA_Data__c> abaPDataList,string parentId){
for(ABA_Data__c abaProgram : abaPDataList){
Boolean isFirst = true;
system.debug('>>> function... '+abaProgram);
//system.debug('>>> function type... '+abaProgram.Notes__c); // getting error while trying to access notes field
}
This is the value I'm receiving in the first debug logs
ABA_Data__c:{Notes__c=[value 1, value2], Date_Recorded__c=2021-02-08 00:00:00}
What's the reason I'm getting this error when I'm trying to access the field value?
the parameters to this method is passed from Aura Component