Learn from industry experts! Admin batch starts from 19 Feb.
Hurry up!
Book your slot now!

8

What Is DML In Salesforce?

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.

Salesforce Developer Training CTA
Next Topic

Need more support?

Get a head start with our FREE study notes!

Learn more and get all the answers you need at zero cost. Improve your skills using our detailed notes prepared by industry experts to help you excel.

Book A 15-Minutes Free Career Counselling Today!