January 31, 2021

FOR UPDATE Clause in SOQL

Hello Trailblazers !

In this blog post, we will see what is FOR UPDATE clause in SOQL, when to use it and how to use it. FOR UPDATE clause in SOQL is basically used to lock sObject records while they are being updated in order to prevent race conditions and other thread safety problem.