+ Start a Discussion
Arif MuzafarArif Muzafar 

Auto deletion of tasks

Hi i have a question. We would like to auto delete all incomplete task in a given opportunity when 2 criteria are met. First is when there is a discharge date and second  is when there is a discharge reason.

Trial with Process Builder
The 2 crterias that we would like to be met are shown below;

Discharge Date and Reason
Herish SurendranHerish Surendran
You can call flow from process builder (example of how to call flow from process builder - https://trailhead.salesforce.com/en/content/learn/modules/business_process_automation/business_process_automation_combined) or call apex class from process builder(example of how to call apex from process builder - https://blog.webnersolutions.com/salesforce-call-apex-class-from-process-builder/#:~:text=To%20call%20an%20Apex%20method,%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6%E2%80%A6%20%7D%20%7D) to delete the related task. 

If this solves your question mark this as solved.
Arif MuzafarArif Muzafar
Hi,

I'm fairly new to Salesforce. Which is the best method used? Also i tried the process builder but i got stuck in the immediate actions as i am unable to determine which action type to select.
User-added image