May 2019
Intermediate to advanced
546 pages
12h 41m
English
In the previous paragraph, you learned what DML in Apex means, and how it works. In Salesforce, we can use two types of DML:
Both have pros and cons. Most of the time, it will depend on how you want to manipulate your data. The following is an overview of the pros and cons of the two types of DML:
|
Short DML |
Database class |
|
Short means short—with the statement insert new Movie__c(Name = 'Independence Day'), you just inserted a new movie with the title Independence Day. |
This is a longer piece of code. You call the database class and the action you want to do: Database.insert(new Movie__c(...)) ... |
Read now
Unlock full access