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

Dml operations on User Territory



I know as per documentation that we cannot have Dml operations on User Territory records in Apex.


But, I think using @future call we can have a method in a single class and have the operation done. But for me it is 2 controller classes for one page module so this too wont work.


Please let me know how can I have delete operations on User Territory object records?






Abhishek Pal 33Abhishek Pal 33
I am still getting DML operation error while I am using @future in a method that tried to insert UserTerritory object.