You need to sign in to do that
Don't have an account?
l00p3y
Im missing somthing..... Initial term of field expression should be concrete SObject
I am attempting to create a custom class that I can call from a Trigger. I am getting the error stated above but I am not quite understanding the dilemma... Any assistance would very useful....
public class StateCoverage { public static void coverage(StateCoverageScript__c[] scs){ scs.Total_Accounts__c = [Select count() From Account a where a.BillingState = : scs.StateAbbreviation__c ]; scs.Run_Script__c = false; scs.Last_Run_Date__c = system.today(); } }
Superfell
Your function says its takes an array, but you're accessing the scs variable as if its not an array.