Question

Appointment Booking - perform_threesixty_appt_request

  • 18 January 2022
  • 5 replies
  • 193 views

Userlevel 2
Badge +6

Hello all,

 

On the response of the API perform_threesixty_appt_request we receive a field called "Available". In our understanding this field determines if the slot is available or not. What are the scenarios in which the slots are returned with "Available= False". Is it possible to only receive the slots for which the field is equal to True?

Additionally, is there any available documentation about the type and maximum length of the fields that are required for the API? On Odata documentation (https://[url-environment]/odata/docs) the only information is that they are all Strings.


Thank you for the help,
Joana Machado


5 replies

Userlevel 7
Badge +23

Hi Joana,

Slots will be returned with available=false if the ABE isn’t able to find space within the resource’s shift to place the activity for that slot period.  The ABE can move existing scheduled activities around the resource’s shift (within their availability periods of course) to find availability but it will not displace activities that are already scheduled unless you set the MaxDisplaceableActivityPriority parameter - by default this is -1 which means no activities will be displaced.

Field types and lengths are described in the scheduling schema guide which is in the documentation folder of your PSO release.

Hope that helps,

Tom

 

Userlevel 2
Badge +6

Hi Tom, 

Thanks for your help. Do you know if it is possible to not receive the slots that are not “Available” in the response message?

Thank you!!

Joana Machado

Userlevel 7
Badge +23

Hi Joana,

No - I’m afraid that isn’t possible. My suggestion is to display these slots as unavailable in your UI so it is clear to the user that there is not availability for that slot. 

If none of the slots offered are suitable then the current request should be rejected with a response of -1 and a new appointment request made.

Kind Regards,

Tom

Userlevel 2
Badge +6

Hi @tomgreenwood 

When we restrict the number of slots to be returned - in Schedule App params (APPT_BOOKING_MAX_OFFERS) and in PSO (the number of slots in appointment templates) -  are we restricting both slots that returned with availability true or false, or just the number of slots with availability equal to true?

Thank you for your help, 

Joana Machado

Userlevel 7
Badge +23

Hi @tomgreenwood 

When we restrict the number of slots to be returned - in Schedule App params (APPT_BOOKING_MAX_OFFERS) and in PSO (the number of slots in appointment templates) -  are we restricting both slots that returned with availability true or false, or just the number of slots with availability equal to true?

Thank you for your help, 

Joana Machado

The restriction is for all slots whether there is availability or not.

Reply