Update Service Appointments

Show your users the details of a service appointment—an appointment modified through Salesforce Scheduler—so that users can review and update the appointment.

  1. Create a page where the user can review the appointment details and update the appointment.

    Here’s how a Review Service Appointment page can look.

    A representation of the Review Service Appointment screen.

  2. Make a PATCH request to the service-appointments Connect API to modify the service appointment.

    Resource URI

    Where YOUR_INSTANCE is a variable.

    Sample Request

    Specify the scheduling policy ID in which the shift is defined. Additionally, pass the parameters including the standard and custom fields that are not available in the input parameters list as extended fields. Edit access on these fields is required to update their values. For example, pass the status field as extended fields with its value set to Canceled to indicate that the appointment is canceled.

    Update Service Resource and engagement channel type

    Update Time Slot

    Update Appointment Status

    Sample Response

    The API returns the service appointment ID and the assigned service resources.

  3. Create a page to show confirmation when the service appointment is modified successfully.

    Here’s how a sample confirmation page can look.

    A representation of the confirmation screen.