Activity › Forums › Salesforce® Discussions › What are the methods of LockResult Class in Salesforce ?
-
What are the methods of LockResult Class in Salesforce ?
Posted by Kirandeep on August 26, 2020 at 1:49 PMWhat are the methods of LockResult Class in Salesforce ?
Pooja replied 5 years, 9 months ago 4 Members · 3 Replies -
3 Replies
-
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 5 years, 9 months ago by
Anuj.
-
This reply was modified 5 years, 9 months ago by
- [adinserter block='9']
-
getErrors() If an error occurred, returns an array of one or more database error objects, providing the error code and description.
getId() …
isSuccess() -
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.