You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported error and code sample (ActionPlansV4 sample repo):
main/default/classes/ActionPlansTriggerHandlers.cls
Missing: line 330 at 42-73: Unknown field 'IsClosed' on SObject 'Schema.Event'
Map<Id, APTask__c> parentControllingTasks = new Map<Id, APTask__c>([SELECT Id, (SELECT Id, IsClosed FROM Tasks__r) FROM APTask__c WHERE Id IN :parentControllingTaskIDs]);
Set<Id> apTasksNeedingTaskDeletion = new Set<Id>();
for(Id i : openControlledAPTasks.keyset()){
APTask__c controller = parentControllingTasks.get(openControlledAPTasks.get(i));
if(controller.Tasks__r.isEmpty() || !controller.Tasks__r[0].IsClosed){
apTasksNeedingTaskDeletion.add(i);
}
}
"Tasks__r" comes from the nested query which we probably ignore. The resolved type of the first element is then Event according to the error.
The text was updated successfully, but these errors were encountered:
Reported error and code sample (ActionPlansV4 sample repo):
"Tasks__r" comes from the nested query which we probably ignore. The resolved type of the first element is then Event according to the error.
The text was updated successfully, but these errors were encountered: