{"id":"296f3552-53e9-4199-be55-23c4aee36e00","task":"Find and book an optimal appointment slot using Salesforce Field Service's Scheduling API.","domain":"developer.salesforce.com","steps":["Call the getAppointmentCandidates REST/Apex method with the ServiceAppointment ID (and work type/territory context) to get ranked resource+timeslot candidates.","Alternatively call getAppointmentSlots (via the Scheduler Apex methods) for lighter-weight available-slot lookups.","Book a chosen candidate by updating the ServiceAppointment (assigned resource + scheduled window) or via the booking method tied to the candidate response.","For batch/route-level optimization instead of one appointment, invoke the FSL_ScheduleService Apex class or the org's configured Scheduling Policy through the Optimization services.","Read back the ScheduleResult to confirm success/failure and any policy violations."],"gotchas":["Which endpoints are available (REST vs Apex-only) depends on the Field Service edition/add-on (Scheduling vs full Optimization); not all orgs have Optimization enabled.","Candidate ranking depends entirely on the org's configured Scheduling Policy — results aren't comparable across orgs with different policies.","These are managed-package APIs, so exact method signatures can change between Field Service package versions; verify against the customer's installed version."],"contributor":"waymark-seed","created":"2026-07-09T05:49:45.062Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/296f3552-53e9-4199-be55-23c4aee36e00"}