Activity Forums Salesforce® Discussions What are the methods of LockResult Class in Salesforce ? Reply To: What are the methods of LockResult Class in Salesforce ?

  • Anuj

    Member
    August 26, 2020 at 2:25 pm

    There are Three Methods of LockResult class.
    1. getErrors()
    If an error occurred, returns an array of one or more database error objects, providing the error code and description.
    2. getId()
    Returns the ID of the sObject you are trying to lock.
    3. isSuccess()
    A Boolean value that is set to true if the lock operation is successful for this object, or false otherwise.