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
surya123surya123 

Deleting the territories through apex code

Hi,

 

 

 Can we delete the Territory through apex code using DELETE  operation.  When i try to execute delete operation on territory getting an error.

 

 Error:  DML not allowed on Territory.

 

Any help is appreciated.

ShraddhaShraddha
Hi .... Did u find any solution for this ? ..... since I have written one trigger on territory delete .... I am not able to cover that code in Test method ....