I was wondering if someone could explain this to me. I am currently working in an org with Territory Management (1.0) enabled and I am trying running queries but getting weird results.
When I run a query like this:
Select Id From AccountShare WHERE UserOrGroup.Type = 'Territory'
I get no results back.
However, if I do this:
Select Id From Group WHERE Type = 'Territory' //Take an Id from this result set Select Id,UserOrGroup.Type From AccountShare WHERE UserOrGroupId =: fromPreviousResult
I get records back. Now the weird part is,
UserOrGroup.Type returned in the AccountShare query says
Queue even though the Id from the
Group query is clearly a type of
Territory. Is there something I am missing