What are Required Resources in Salesforce Field Service, and how do they influence scheduling?
Answer
A Required Resource is a technician a customer or job must be served by. It is set with a Resource Preference record of type Required, and the Required Resources work rule enforces it.
How it influences scheduling
- Only the required resource (or one of several required) can be chosen.
- Everyone else is removed as a candidate, so it is a hard constraint.
- If the required resource is unavailable (absence, no free time, wrong territory), the appointment stays unscheduled until that changes.
Typical uses
- A customer who must always get the same engineer (key account, security clearance).
- Continuity of care on a long job.
- Compliance, such as a certified person.
Create a required preference
apex
ResourcePreference rp = new ResourcePreference(
RelatedRecordId = accountId,
ServiceResourceId = resourceId,
PreferenceType = 'Required'
);
insert rp;
Remember
- The Required Resources rule must be in the Scheduling Policy.
- Use Preferred when you only want a gentle push, and Excluded to block someone.
- Use required preferences sparingly, because they cut flexibility and can leave work unscheduled.
Field ServiceRequired ResourcesScheduling Rules