Experience Salesforce
What Is DML In Salesforce?
What You’ll Learn
- What Is DML In Salesforce?
- What DML is used for?
- Syntax of using DML
Topics
- What Is DML In Salesforce?
- Insert | APEX DML Standalone Statements
- Update | APEX DML Standalone Statements
- Upsert | APEX DML Standalone Statements
- Delete | Apex DML Standalone Statement
- Undelete | Apex DML Standalone Statement
- Merge | APEX DML Standalone Statements
- APEX DML Statements Best Practices
- Database Class in APEX
- Empty Recycle Bin
- Count Query | Method in Apex Database Class
- Lead Conversion | Method in Apex Database Class
- Transaction Control and Rollback
- Database Class Method Result Object
DML stands for Data Manipulation Language through which we can make database changes.
What DML is used for?
it enables you to:
-
- Insert new records in Salesforce
-
- Update existing records
-
- Upsert records
-
- Delete records from the database
-
- Undelete or restore records from the recycle bin
Syntax of using DML:
insert sObject or list of sObjects
update sObject or list of sObjects
delete sObject or list of sObjects
upsert sObject or list of sObjects
undelete sObject or list of sObjects
Note:
In the above statements, if even a single record errors out in the entire list of records then the entire operation is rollbacked.
Next TopicNeed Extra Support? Our FREE study materials have got you covered.
Our expert-prepared study materials provide the answers you need. Clear your doubts and improve your skills with detailed notes from industry professionals.