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

Intermediate calls during @future method execution

How system handles intemediate calls to the record those are a part of @future method?

Like if I have a record id passed in the future method and that record is actually deleted from the system before it is processed by @future method.

Depends on how you implement your future class.
If you update the record based on the record id you pass, it will be error.
So the best way is: in your future class, do a query based on your record id,
to have the latest data.