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
Siddharth Jain 64Siddharth Jain 64 

Time based workflow firing even when criteria mismatched after record update

Hi,

We have a workflow that has a Immediate and a Time Dependent Action. 

Entry Criteria:
Status = 'Pending' AND Community = 'DP'.

Time Based Action:
Alert - 1 hour after CreatedDate
Type - Email Alert

Immediate Email notification is sent based on above criteria and Time Based is added to queue. The record is updated and Status = Approved. Time Based action fires in 1 hour which should not fire as the status is already approved now, it should evaluate the criteria again at the time of execution.

Any pointers here if this is a know issue or if something is not correctly configured.

Thanks
Siddharth
Pradeep SinghPradeep Singh
Hi Siddharth,
In case of time based workflow, it only checks if there is any change in the criteria of the workflow and the existence of the record on which you are firing the action.
It creates the action based on the initial criteria and keeps that in queue. So if you are changing anything, it won't affect the queue.
 
Siddharth Jain 64Siddharth Jain 64
Right so in that case when the Time based workflow executes it should be evaluating the record state. So in this case because the record state changed and does not match it should simply remove the record from time based queue amd take no action
Pradeep SinghPradeep Singh
Yes, the record should be removed from the queue in your case.