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
Arun KArun K 

Understanding Territory 2.0

Hi,

Please help in understanding below points
  • I am using Territory 2.0 and I can use SOQL but not SOQL. Why?
  • Below 2 URL is conflicting in using DML operation. Please help in understanding. Please note 1st URL with list of objects that dont support and 2nd URL about Territory 2.0 object. 
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dml_non_dml_objects.htm
https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_territory2.htm

Please let me know any issues.
 
ShashankShashank (Salesforce Developers) 

There is a difference between DML operations and API calls for create, delete, update etc.

DML is when you create, update or delete records using your apex code.

API calls are accessed by external systems.

You can perform API calls like create, update or delete on the Territory2 object. But when you fetch Territory2 object records in apex and want to modify them, or just create new Territory2 records without even fetching anything, that is something which is not possible.