Activity Forums Salesforce® Discussions Are we at risk of Salesforce race condition in future method?

  • Vikas Kumar

    Member
    January 18, 2017 at 1:34 pm

    Hi Mohit,

    @Future's are queued transactionally along with other DB changes in the trigger transaction, so the future can't be executed until the enqueuing transaction commits. (and conversely, if the trigger transaction never commits due to errors etc, the @future is never executed)

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos