List<APEX_Invoice__c> updatedInvoice new List<APEX_Invoice__c> ();
for (APEX_Invoice__c obj:objInvoice){
obj.APEX_Invoice__c.Status__c = 'Paid';
updatedInvoice.add(obj);
}
update updatedInvoice;
Why is it not working and showing me error like :
Unexpected token '<'.
Can we not enter where clause in SOQL when using it with LIST ?
Note: The field API name is correct. And also when I simply run the Select query it does fetch the data, but does not work with LIST.