+ Start a Discussion
Mike DeMilleMike DeMille 

How to force an opportunity to change stages after 90 days

Hi,

I'm a very beginner developer and I really need some help and ideas here on how to write an apex trigger that will change the opportunity stage from stage A to stage B 90 days from the time the opportunity was put into stage A if the opportunity stage has not already been changed.  I know I'm asking a lot here, but help would greatly be appreciated.  I'm looking for general ideas on how to do it as well as some help with the code.  

I don't believe this can be done with process builder or any other point and click features, right?
Best Answer chosen by Mike DeMille
hitesh90hitesh90
Hello Mike,

It is possible through point and click features. see below link for how to add Time-Dependent Action in to workflow.
https://help.salesforce.com/apex/HTViewHelpDoc?id=workflow_time_dependent.htm&language=en_US

Let me know if you have any question on this. Please mark this "Solved" if it helps.

Thank You,
Hitesh Patel
Email :- hiteshpatel.aspl@gmail.com
http://mrjavascript.blogspot.in/
 

All Answers

hitesh90hitesh90
Hello Mike,

It is possible through point and click features. see below link for how to add Time-Dependent Action in to workflow.
https://help.salesforce.com/apex/HTViewHelpDoc?id=workflow_time_dependent.htm&language=en_US

Let me know if you have any question on this. Please mark this "Solved" if it helps.

Thank You,
Hitesh Patel
Email :- hiteshpatel.aspl@gmail.com
http://mrjavascript.blogspot.in/
 
This was selected as the best answer
Nitin SharmaNitin Sharma
Create a time dependent workflow with field update action. it wil update stage field.
Let me know if you have any query.

Thanks
Nitin Sharma
Mike DeMilleMike DeMille
Thanks to you both for the help.