whats the frequency of the letter s in:
q: how to schedule a record field change to run after a specific amount of time i would like every lead that meets certain criteria to be marked as stale (toggling a custom field) and reassigned if its been inactive for 24 hours (lastmodifieddate > 24 hours ago). im trying to use a flow with a scheduled path. the issue is that if the lead is modified after the flow is triggered, i assume the original flow would still be running. i would need a way to cancel the previous flow if a new one is activated on this record. my backup plan is to just run a batch class every few hours, but thats less ideal.

a: *

*for the above scenario a schedulable batch apex would be a better option

*you can schedule the batch class to run midnight

*due to its asynchronous behaviour you get increased governor limits by which you can process large data volumes

*flows on the other hand are synchronous so it may be possible that in near future your flow would encounter system.limit exception every now and then


user
The passage contains 54 "s"s.
assistant