List<CustObjChild__c> cItems = [SELECT COUNT() FROM CustObjChild__c
WHERE MyParentId__c IN :Trigger.new];
Getting the error: Illegal assignment from Integer to List. In Salesforce Apex Trigger.
Trigger is in the child object which has a Master-Detail relationship.
Any pointers? Thanks!
I had tried with Integer earlier and tried again now with Integer, but when executing the trigger, keeps getting the error:
Line: 19, Column: 1 System.DmlException: Insert failed. execution of AfterInsert caused by: System.QueryException: Invalid bind expression type of CustObjChild__c does not match domain of foreign key Class.