Booking Appointment Type and optional resources
Stu edited this page Apr 20, 2021
·
13 revisions
This object contains the AppointmentId or AppointmentIdKey, and any Optional resources and the Env it is associated with.
Property | Type | Required | Default Value | Description |
---|---|---|---|---|
Environment | string | ✔️ | ❌ | Environment |
AppointmentIdKey | string | ✔️ unless AppointmentId set | ❌ | QuestionId of the previous question the AppointmentId is being sourced from - Must be provided if not using a previous question answer |
AppointmentId | string | ✔️ unless AppointmentIdKey set | ❌ | Unique Id for Appointment type - Must be provided here if not being sourced from a question via AppointmentIdKey |
OptionalResources | Array[OptionalResources] | ❌ | ❌ | Optional list of resources for appointment |
{
"Type": "Booking",
"Properties": {
"AppointmentTypes": [
{
"Environment": "int",
"AppointmentId": "000000000000-0000-0000-0000-000000000000"
},
{
"Environment": "qa",
"AppointmentId": "000000000000-0000-0000-0000-000000000000"
}
]
}
}
Optional Resources property expects an array of BookingResource object which requires a ResourceId and Quanity supplied
Property | Type | Required | Default Value | Description |
---|---|---|---|---|
ResourceId | Guid | ✔️ | ❌ | Id for Resource |
Quantity | int | ✔️ | ❌ | Quantity |
{
"Type": "Booking",
"Properties": {
"AppointmentTypes": [
{
"Environment": "int",
"AppointmentId": "000000000000-0000-0000-0000-000000000000",
"OptionalResources": [
{
"ResourceId": "0000000-0000-0000-000-000000000000",
"Quantity": 1
}
]
}
]
}
}
The AppointmentTypes array will need to include 'AppointmentIdKey' field to match the question id to retrieve the element appointment id value.
{
"Type": "Booking",
"Properties": {
"AppointmentTypes": [
{
"Environment": "int",
"AppointmentIdKey": "questionid"
}
]
}
}
- Availability
- Actions
- Behaviours
- Breadcrumbs
-
Conditions
- String Conditions
- Date Conditions
- Integer Conditions
- File Upload Conditions
- Custom validation
-
Elements
- AddAnother
- Address
- Button
- Booking
- Checkbox
- Date Input
- Date Picker
- Declaration
- Document Download
- Document Upload
- File Upload
- H1-H6
- HR
- Image
- Inline Alert
- Link
- Map
- Multiple File Upload
- OrderedList
- Organisation
- P
- Radio
- Select
- Street
- Summary
- Success page
- Textarea
- Textbox
- Time input
- Unordered List
- Uploaded files summary
- Warning
- EnabledFor
- Feedback form
- File uploads
- Form Schema
- Header
- Inbound Values
- Integrating with PowerAutomate/0365
- Lookup
- Page
- Payment & Payment calculations
- Preview data structure
- Render conditions
- Reusable elements
- Structure tests
- Success page
- Tag parsers
- Target mapping
- Validators