Activity Forums Salesforce® Discussions How can we lock record using SOQL in Salesforce?

  • Ratnesh

    Member
    June 3, 2020 at 6:47 am

    In Apex, you can use FOR UPDATE to lock sObject records while they're being updated in order to prevent race conditions and other thread safety problems. While an sObject record is locked, no other client or user is allowed to make updates either through code or the Salesforce user interface.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos