Activity › Forums › Salesforce® Discussions › What is Salesforce Apex transaction?
Tagged: DML Operations, Runtime Error, Salesforce Apex, Salesforce Apex Code, Salesforce Lightning Platform, Salesforce Query, Salesforce Records, SET, Transaction in Salesforce
-
What is Salesforce Apex transaction?
Posted by Aman on September 22, 2018 at 11:00 AMWhat is Salesforce Apex transaction?
Parul replied 7 years, 7 months ago 3 Members · 2 Replies -
2 Replies
-
An Apex transaction represents a set of operations that are executed as a single unit. The operations here include the DML operations which are responsible for querying records. All the DML operations in a transaction either complete successfully, or if an error occurs even in saving a single record, then the entire transaction is rolled back.
- [adinserter block='9']
-
Apex Transactions ensure the integrity of data. Apex code runs as part of atomic transactions. Governor execution limits ensure the efficient use of resources on the Lightning Platform multitenant platform.
Because Apex runs in a multitenant environment, the Apex runtime engine strictly enforces limits to ensure that runaway Apex code or processes don’t monopolize shared resources. If some Apex code exceeds a limit, the associated governor issues a runtime exception that cannot be handled.
Thanks
Log In to reply.