I am trying to create a workflow that will uncheck a custom checkbox field on the opportunity 365 after the created date. Right now, there is a workflow that automatically checks this field anytime an opp is created. I have a time dependent workflow set up to uncheck it 365 days later. The problem I am hitting is with Opportunities that have already been created. I was planning on exporting a list of all opps created in the last 365 days and checking that custom field. However, i cannot come up with a workflow that would uncheck that box 365 after the created date for the opps that are already in the system.
답변 1개
Workflow rules are not triggered retroactively. In other words, if you create a rule now, the rules are not applied to previously created records. Take a look here for more information:
https://help.salesforce.com/articleView?id=000005245&type=1
Also look here Considerations for Time-Dependent Actions and Time Triggers
https://help.salesforce.com/articleView?id=workflow_time_action_considerations.htm&type=5
For your problem, One solution can be change your rule to every time a record is created or edited to subsequently meet criteria for some time and make sure that your workflow runs for old opportunity when they are edited(Please note you may be required to edit 2 times as we have subsequently meet criteria). Update old opportunity and run time based action based on Created date.
Change back your workflow to origanal one.