function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MayankAdmMayankAdm 

All Recursive task getting deleted through the Apex Trigger

Hi Everyone,

We have a usecase in which we have to delete the Not Started task under the Account object with simple criteria and  under the account number of recursive task getting created through the process builder at the time of account creation.

Problem is those recursive task which wont be come under the deletion criteria that also getting deleted but if we create normal task that wont be effected.

I tried different way to handle this sitution like removing the recurrence flag in the task but that wont allow in update operation. 

 t.RecurrenceStartDateOnly = Date.today().addDays(- 1);
 t.RecurrenceEndDateOnly =  Date.today();

Please help me if anyone face this situation.

Thanks in Advance !!