You need to sign in to do that
Don't have an account?
MnZ321
Get records for a custom object according to logged in Users'territory
orders__c is a MD child with accounts.
How do I get orders__c(parent) and order_lines__c(child) records according to the logged in user's territory?
For now I'm retrieving parent and child from a parent ID. In what order do I need to query territory, accounthshare, my custom object?
How do I get orders__c(parent) and order_lines__c(child) records according to the logged in user's territory?
For now I'm retrieving parent and child from a parent ID. In what order do I need to query territory, accounthshare, my custom object?
Shashank (Salesforce Developers)
This territory management data model should give you a good idea: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_erd_territory.htm
Shashank (Salesforce Developers)
This territory management data model should give you a good idea: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_erd_territory.htm