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
advlgxadvlgx 

Trouble with simple SOQL query

Does anyone know the syntax a simple SOQL query that returns a list of accounts and the territories it is assigned to.

 

I can't figure out the tables involved and relationships when Salesforce territory management is turned on.