function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
OscarOscar 

new to cloud

difference between dynamic SOSLand SOSL

 

difference between dynamic SOQL and SOQL

difference between dynamic DML and DML

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

Dynamic SOQL/SOSL means that you create the query string at runtime, allowing you to use different fields/objects/where clauses as you need.

 

Dynamic DML means that you use get/set notation to access fields on an sobject rather than hardcoding the field names.  This would allow you, for example, to set infromation based on a user selecting the field from a visualforce page.