• Shraddha
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hi...I have written one Trigger on Territory delete ....But I am not able to cover that trigger code in my Test method . When I try to delete territory through my Apex Test class it gives me an " error : DML not allowed on Territory " .... So please let me know if there is any way to cover that code in my Test method.

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.