9 votes
Accepted

Queued Timebase workflow not firing after scheduled date

The time based workflow processor only runs once every fifteen minutes, starting from the time the processor starts. For example, if the server comes up at three minutes past the hour, it will run at ...
  • 445k
7 votes
Accepted

Hourly limit exceeded for processing workflow time triggers

Salesforce does not throw the triggers away if it goes over the hourly limit it just queues it up for the next hour. So in your example of 3,000 workflow time triggers firing at once. Which seems ...
  • 3,351
7 votes
Accepted

Do time-based workflow rules cause triggers to fire?

Any field update from a Workflow Rule/Process Builder/Apex Trigger will cause update triggers on affected records to fire.
  • 144k
6 votes

Should time-based workflows trigger upon record update that puts trigger date in the past?

The problem is with how you are trying to get the workflow rule to fire. As crop1645 commented, changing the date will not cause the workflow rule to fire. Take a look at this help doc here. Your ...
  • 10.4k
6 votes
Accepted

What table(s) store Time-Based Workflow and can I delete those records with Flow or Apex?

The object you're looking for is the WorkflowTimeQueue. However, it does not appear to be accessible from Apex Code or the API, so there's no way you can clear pending entries, other than manually ...
  • 445k
5 votes
Accepted

Querying Time-based Workflow Queue

Apex tests are for testing Apex. They are not designed to test for declarative features. That being said, I agree with the desire to do so. Why not write a test that ensures that functionality ...
  • 19.2k
5 votes
Accepted

Executing Workflow Rule in Minutes? (Time Based Workflow)

Here is an old blog post I saved for this purpose: The 5 minute workflow It will show you how to set a workflow to fire in intervals of minutes. BUT: you cannot have it fire say every x minutes. ...
  • 53.3k
5 votes
Accepted

Prevention of Lead conversion as it has a time based action queued

I think, you are creating time based action based on created date and this time based action is getting queued. I would suggest you to create a separate datetime field, let's say Action DateTime ...
4 votes
Accepted

Time-dependent workflow vs Apex Scheduler

Scheduled apex jobs are the only time-based alternative for time-based workflows within the SFDC platform currently. So your idea of moving to scheduled apex is the way to go. As a general way of ...
4 votes

Time-dependent workflow error handling

My understanding says that Workflow field updates will not fire custom validation rules. The field will be updated irrespective of validation rule. Before & After triggers will fire. SO AddError ...
  • 3,840
4 votes
Accepted

Effect of changing email template on time based workflow

When I change the email template, do any of my queued emails get deleted from the queue? My testing says no, but I'd like to confirm. No. Deleting or deactivating the workflow rule would have an ...
  • 445k
4 votes

Executing Workflow Rule in Minutes? (Time Based Workflow)

Adding to the answer, an Apex class that implementing the Schedulable interface can do the job too. References: Apex Scheduler Cron Expression writer - cronmaker.com Example: Write a class ...
  • 7,366
4 votes
Accepted

Alert notification if there is no update in 4 hours

You can use Escalation Rules for this purpose. It will send an email to a user and also optionally assign the case to another user (such as a manager). Unlike a workflow rule, it shows a red arrow ...
  • 445k
4 votes

Deleting lead if its not active for 15 days

You will want to write a batch and execute it daily. Your query locator should look like: SELECT Id FROM Lead WHERE CreatedDate < LAST_N_DAYS:15 AND Consent_Obtained__c = false Then your execute ...
  • 144k
4 votes

Deleting lead if its not active for 15 days

You could make it a combination of workflow logic and trigger. Workflow Rule Evaluate when record is created or modified and meets the criteria. Criteria: Date Consent Obtained equals null Action: ...
  • 445k
4 votes

What causes time based workflow to run as "automated process"

I've got to the bottom of one scenario specific to a sandbox (still seeing it in production though) - for some reason the default workflow user was bugged. The user lookup was completed with the ...
  • 5,205
4 votes
Accepted

Time based workflow actions

I dont think you are allowed to change the time triggers if you have old records pending actions in the queue. You can check the limitations here on the salesforce documentation. https://help....
  • 121
4 votes

Update check box using workflow

Go to Setup Menu->Create->Workflows->Process Builder->New-> NameYourProcess Save Add Object You wanna make this workflow work On Mark "when a record is created or edited" Save Add Criteria -> ...
4 votes

Time dependent workflow firing always

This is working as designed. If the close date is 2 weeks from today and the WFR is supposed to send an alert 30 days before, it will send immediately as it is < 30 days before the close date. To ...
  • 53.3k
4 votes

Time Dependent Workflow with multiple email alerts

I think this work this way because of the queue system, it run all the "outdated" action to be executed in the next hour it is inserted, if you see the considerations for this kind of process, it ...
4 votes
Accepted

Time based criteria action without modifying record

See the Time-Based Workflow FAQ (Knowledge Article Number 000005245) (emphasis mine): Will the pending actions in the queue ALWAYS trigger? No. Time-dependent actions remain in the Workflow ...
  • 144k
4 votes
Accepted

How to update record after some time based on certain criteria?

See the Time-Based Workflow FAQ: Will the pending actions in the queue ALWAYS trigger? No. Time-dependent actions remain in the Workflow Queue until processed or the rule criteria for the ...
  • 144k
4 votes
Accepted

How to stop workflow execution when Task Status is set to "Completed"?

You should include status not equal to Completed in the rule criteria. Refer Will the pending actions in the queue ALWAYS trigger? Time-dependent actions remain in the Workflow Queue until ...
3 votes

time based workflow rule

You would need to have a field on the account that a response was received. Assuming you had this populated once the response is received, then you could just create another Time Based WFR to go out ...
3 votes

Time-dependent workflow vs Apex Scheduler

The Limitations of "Time Trigger Workflows" are well documented here: We cannot use the Time dependent Workflow if the option is set to "Every time a record is created or edited." This would be one ...
  • 1,195
3 votes
Accepted

Time-dependent workflow error handling

** significantly updated my answer as it contained a wrong assumption ** Validation rules will not run after a field update (credits to Amit. See his answer for a full explanation). So you have to ...
3 votes

Time-based workflow queue limit

I dont think there is any such limit, nothing that I came across. Lets consider I created 10 Million accounts using dataloader and have a workflow rule with time trigger like 10 days after created ...
  • 3,840
3 votes
Accepted

Delete Inactive Workflow

This workflow rule fire some time trigger which are currently in pending. for exa: if this field update send email after 30 days or if this record created or no update in last thirty days then send ...
3 votes
Accepted

Time-Dependent Workflow rule not working

Here is what you describe: You have a workflow with time-based email actions The actions go into the queue The actions are then removed from the queue but the email is not sent If this is, in fact, ...
  • 19.2k
3 votes
Accepted

Process Builder still fires timed actions even when it no longer qualifies

Not sure if this changed since the original post, but I had the same problem, this is what I found ultimately in sf help. https://help.salesforce.com/articleView?id=...

Only top scored, non community-wiki answers of a minimum length are eligible