+ Start a Discussion

we call that method with task id, it will delete all the data for that task in salesforce

Hi Team,

Here i need to write a program to delete the data,if any one knows please help me.
whenever we call that method with taskid,it will delete all the data from that task.

please help me.

ShirishaShirisha (Salesforce Developers) 
Hi Balaji,


Can you please find the sample code to delete the task record in the below documentation:


You can make changes to criteria to fire this trigger as per your requirement.

Kindly let me know if it helps you and close your query by marking it as best answer so that it can help others in the future.

Warm Regards,
Shirisha Pathuri