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
mohan s 37mohan s 37 

How do we query the UserTerritory associated accounts?

        We have territories enabled. I want to query the Userterritory associated accounts. how do we get this. For example if we have ut1,ut2 and ut3. If user is changed from ut2 to  ut1 i want all the accounts under ut1,ut2 and ut3.

NagendraNagendra (Salesforce Developers) 
Hi Mohan,

Sorry for this issue you are encountering.

May I suggest you please check below link from the stack exchange community with a similar discussion which might help you further. Please let us know if this helps.

Kindly mark this as solved if the reply was helpful.

mohan s 37mohan s 37
Hi Nagendra,

                       Thanks for your reply.The link you provided does not resolved my issue. You provided getting user and it's territory information but, I need userterritory and it's associated accounts.

Mohan S