---
schema_version: "1"
id: 1d3a88d016083a435353d500f05fb709b281075e80f22a9f153993033107ec67
title: Get the Appointment Invitee Details
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/salesforce-scheduler-dev-guide/guides/salesforce-scheduler/uc10-get-appointment-invitee-details.md
canonical_url: https://developer.salesforce.com/docs/service/salesforce-scheduler-dev-guide/guide/uc10-get-appointment-invitee-details.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 087b19b61750ef01e8f843209c7611369d38f010e49b7134cc0a72377d4fe04a
products:
  - Salesforce Scheduler Developer Guide
  - Service Cloud Developer Content
---

# Get the Appointment Invitee Details

An appointment invitee has information about the participant and the resources required for creating an appointment invitation URL. Use the `Query()` request to run Salesforce Query Language (SOQL) on the AppointmentInvitee object to retrieve the appointment invitee details, such as the service territory ID, appointment topic ID, service resource ID, and available booking start and end dates, which you need for retrieving the calendar availability for the invitation URL. You can also retrieve additional details that you need when creating an appointment, such as whether the resources are primary or required.

For a complete list of AppointmentInvitee object fields, see [AppointmentInvitee](https://developer.salesforce.com/docs/atlas.en-us.salesforce_scheduler_developer_guide.meta/salesforce_scheduler_developer_guide/sforce_api_objects_appointmentinvitee.htm).

1.  Make a [`Query()`](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_query.htm) request on the AppointmentInvitee object.

    **Sample REST API Request**

    ```nolang
    https://yourInstance.salesforce.com/services/data/vXX.X/query/?q=​SELECT+AppointmentInvitationId,Id,IsPrimaryResource,IsRequiredResource,​Name,ParticipantServiceResourceId+FROM+AppointmentInvitee+​WHERE+AppointmentInvitationId+=+'1S8x000000000oHCAQ'
    ```

    **Sample Response**

    ```nolang
    {
      "totalSize" : 1,
      "done" : true,
      "records" : [ {
        "attributes" : {
          "type" : "AppointmentInvitee",
          "url" : "/services/data/v55.0/sobjects/AppointmentInvitee/0y6x000000000pFAAQ"
        },
        "AppointmentInvitationId" : "1S8x000000000oHCAQ",
        "Id" : "0y6x000000000pFAAQ",
        "IsPrimaryResource" : true,
        "IsRequiredResource" : true,
        "Name" : "AITE-0247",
        "ParticipantServiceResourceId" : "0Hnx000000007d7CAA"
      } ]
    }
    ```

2.  Parse the response to save the values.

    You need these values to fetch the invitation availability time slots.


After you fetch the appointment invitation and appointment invitee details, create a page on your website to show the calendar availability of the service resources associated with the invitation.

