+ Start a Discussion
salesforce-n00bsalesforce-n00b 

Question

As noted by my nickname, I am a Salesforce N00B (newbie) and I have some general questions re. what is and isn't possible in APEX.

 

Is it possible to change the owner of a Lead back to the general queue if there has been no activity against that lead for N days?

 

Example: 

John owns the ACME lead. John has not had any activity with ACME in the past 15 days. ACME's owner is then set to nobody so that others can pick that lead up. 

 

I'm not looking for triggers that update objects on CREATION or UPDATE...I'm looking for a solution that will change based on date.

BylithiumBylithium

You can try the workflow rules..write a formula based on the criteria and trigger an action like field update in your case

salesforce-n00bsalesforce-n00b

Workflow rules are only activated when a record is created or edited.

 

In the aforementioned example, no creation or editing will occur

SuperfellSuperfell

See the timebased workflow feature.

salesforce-n00bsalesforce-n00b

What about records that were created prior to this timebased rule?