+ Start a Discussion
Sangita07Sangita07 

Time based WF action is not working on bulk data which are created at the same time via Batch job

I have created time-based WF rule to update a checkbox on a custom object record.The WF will be triggered after 1 hour of records creation.These records should be created by batch class.  When multiple records are created via batch class, I am able to see all records while Monitoring the time-based WF rule.The WF is removed after scheduled time also. But records are not getting updated.

However the time-based WF rule is working fine for single record.

Can anyone suggest what is the issue ?
Best Answer chosen by Sangita07
VinayVinay (Salesforce Developers) 
Hi Sangita,

Time-dependent actions aren’t executed independently. They’re grouped into a single batch that starts executing within one hour after the first action enters the batch.  Actual execution may be delayed based on service availability.

Review below links
https://help.salesforce.com/articleView?id=workflow_time_action_considerations.htm&type=5
https://help.salesforce.com/articleView?id=000329332&type=1&mode=1
https://help.salesforce.com/articleView?id=000325723&language=en_US&type=1&mode=1

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar

All Answers

VinayVinay (Salesforce Developers) 
Hi Sangita,

Time-dependent actions aren’t executed independently. They’re grouped into a single batch that starts executing within one hour after the first action enters the batch.  Actual execution may be delayed based on service availability.

Review below links
https://help.salesforce.com/articleView?id=workflow_time_action_considerations.htm&type=5
https://help.salesforce.com/articleView?id=000329332&type=1&mode=1
https://help.salesforce.com/articleView?id=000325723&language=en_US&type=1&mode=1

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar
This was selected as the best answer
Sangita07Sangita07

@Vinay

Does that mean after the scheduled time,WF will be removed from queue. But it will take some extra hours to perform the action?

VinayVinay (Salesforce Developers) 
Hi Sangita,

It will be in queue,  but might get delayed in executing based on resource availability within an hour.

Thanks,
Vinay Kumar