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
Vidya H 4Vidya H 4 

need to write trigger to assign technician to work order please help me

Installed products may hold preferred technician and if present will be
assigned to the work order.
● Location can hold preferred technicians under the Location Technicians. If
found, one technician will be picked and assigned.
● If installed product and locations both have preferred technicians,
Technicians from Installed products will be assigned.
● If installed products and locations have no preferred technicians, a check is
performed on the Primary Territory of Work order to get the technicians who
have the same territory mentioned in their Service Territory.
● ​​​​​​Service team to which technician belongs will also be assigned on the work order.
 
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Vidya,

Can you post what have you tried till now and where excatly you are facing the difficulties so experts can pick the issue from there.

Thanks,