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
Josie HannaJosie Hanna 

How to create automatic tasks based on no activity on a stage within an opportunity?

Deepak GulianDeepak Gulian
You mean if no activity happens on Opportunity during a selected stage, a task should be created automatically?
Josie HannaJosie Hanna
Yes
Deepak GulianDeepak Gulian

Let's take an example of "Opportunity A" is in a "Stage_A" currently.

For how long you would like to wait to see if no activity is created then create an automatic task?  Any specific time span like 2 days or 3 or more 

Josie HannaJosie Hanna
Yes, no activity within 6 days of "Stage_A" a task would be assign to the opportunity owner. 
Deepak GulianDeepak Gulian
So far I can think of having Batch Apex to handle this time-based scenario.