Upcoming Appointments

Use the upcomingAppointments query to retrieve the list of coming appointments assigned for a user.

Arguments

ArgumentTypeDescription

first

Int

Retrieves the first results from the list.

last

Int

Retrieves the last results from the list.

after

String

before

String

Available Fields

Field

Type

Description

id

ID

A base64-encoded version of the databaseId

appointmentCredits

AppointmentCredit

appointmentType

AppointmentType!

attendees

string

coach

string

Coaching portal Coach.

contactType

CalendarContactType!

enum: GOOGLE_MEET, PHONE_CALL, VIDEO_CALL, ZOOM

description

String

Description of the appointment.

end

DateTime!

Date and time when the appointment will end. YYYY-MM-DDT hh:mm:ss

labTestReports

LabTestReportConnection

Lab test report assigned to the appointment.

postEventStatus

PostEventStatus

enum: CANCELED_BY_COACH, CANCELED_BY_MEMBER, COACH_NO_SHOW COMPLETED, MEMBER_NO_SHOW, RESCHEDULED_BY_ADMIN, RESCHEDULED_BY_COACH, RESCHEDULED_BY_MEMBER, SCHEDULED

start

DateTime!

Date and time when the appointment will start. YYYY-MM-DDT hh:mm:ss

status

EventStatus!

enum: CANCELLED, CONFIRMED, TENTATIVE, UNKNOW

title

String!

Title of the appointment.

zoomSessionName

String

Zoom session name.

ZoomSessionPassword

String

Zoom session password.

Example

query {upcomingAppointments 
{
  edges{
    node{
      title
      start
      end
      id
      coach{
        name
      }
    }
  }
}
}

Building Appointment URL

We do not provide the appointment URL as field, instead we build the link directly on the app which can be done by using below link and replacing the fields zoomSessionName , zoomSessionPassword and displayName with the data gathared from the query upcomingAppointments as below:

query {upcomingAppointments 
{
  edges{
    node{
      id
      start
      zoomSessionName
      zoomSessionPassword
      attendees{
        displayName
      }
    }
  }
}
}

URL Template:

https://coaching.suggestic.com/calls/join?topic=[zoomSessionName]&password=[zoomSessionPassword]&userName=[user/coach name]

End Result:

https://coaching.suggestic.com/calls/join?topic=QltDAwXugsP0jE16fM0mSM69RMDOlEpwtHaBSuXbIwYg5USSZ1ivbK2NH2L&password=GuH5QrNtlo&userName=User

Last updated