Populating Primary territory through apex code and also Territory match rule
I am trying to populate the "Primary territory" on work order, through apex code, it's allowing me to do that when I update my territory match rule. but the Dispatch process is not being picked up for that work order.
When I mark "SET0049"(disable territory match rule) setting to false, the above scenario working fine Dispatch process is getting set up correctly.
Is there any way we can accommodate Primary territory population-based on Territory match rule and customization approach. and the Dispatch process value will get populated.
User Reply Populating Primary territory through apex code and also Territory match rule PabloMooneyham
mobile-friendly field service hub in Salesforce. via a related list, the field that lists the parent record doesn't populate until you save the They also can't be referenced If a Match Territory work rule is included in the applied scheduling policy, the be assigned only to appointments in their primary or relocation territories.