Hi everyone! We have an issue in our org. So a scheduled apex job runs every evening at close of business to pick all cases that are due to be auto-closed that day, and through an apex class updates the status of these cases to 'Closed' and sends a notification email. Now we have another record triggered flow that triggers when a case is closed, and calculates the age of the case in business hours and updates the case record this value. Since we are calculating this based on the business hours defined in set up, we are unable to implement this as a formula field and need a record triggered flow. This flow works when the case status is updated manually one record at a time. However, when the apex job mentioned above updates a bulk of cases, it ends up triggering this flow and erroring out. How can we overcome this issue?
Thanks in advance for any suggestions.
#Salesforce Developer
Hi Steven,
Its not very clear. I have attached the error we receive. I tried searching online with the code. But that also isnt consistent and I could not figure out what it meant.
Thanks!