Activity Forums Salesforce® Discussions What is the use of “FOR UPDATE” in Salesforce Object Query Language (SOQL)?

  • What is the use of “FOR UPDATE” in Salesforce Object Query Language (SOQL)?

  • Aman

    Member
    September 23, 2018 at 7:29 am

    What is the use of “FOR UPDATE” in Salesforce Object Query Language (SOQL)?

  • shariq

    Member
    September 23, 2018 at 7:29 am

    FOR UPDATE is used to lock the records.

    Ex: Campaign cam = [SELECT id FROM Campaign LIMIT 1 FOR UPDATE];

  • Parul

    Member
    September 23, 2018 at 7:40 am

    Lock the records for update the changes

  • Pooja

    Member
    February 20, 2020 at 2:50 pm

    For lock the record we can use of “FOR UPDATE” in Salesforce Object Query Language (SOQL)

Viewing 1 - 4 of 4 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos