Duplicate AssignedResource records get created for a single ServiceAppointment when two users — a Dispatcher and an Integration User — simultaneously schedule the same Service Appointment.
Root Cause / Expected Behavior:
This is expected platform behavior. Since both operations begin before either has completed, neither operation is aware of the other's in-progress assignment. Both independently generate a new AssignedResource record on the same Service Appointment, resulting in two separate AR records.
AssignedResource: Is_Technician__c = ServiceResource.ResourceType = "T"ServiceAppointment counting ARs where Is_Technician__c = TrueAssignedResource to block save when count ≥ 1before insert trigger on AssignedResource that queries existing AR records for the same SA and throws an error if a Technician is already assigned.005386857

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.