Activity Forums Salesforce® Discussions 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.

    • This reply was modified 3 years, 8 months ago by  Anuj.
  • Ratnesh

    Member
    August 26, 2020 at 2:28 pm

    getErrors() If an error occurred, returns an array of one or more database error objects, providing the error code and description.
    getId() ...
    isSuccess()

  • Pooja

    Member
    August 26, 2020 at 3:47 pm

    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.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos