Solved

PSO Appointment Booking Output

  • 30 January 2024
  • 8 replies
  • 68 views

Userlevel 2
Badge +8

Hi Experts,

I am loading following Appointment Request and after processing no error can be seen. But when I check the history I could not see any data there. Please refer attached xmls Load file and Appointment request.

Please help to answer the following question.

 

  1. Do I need to Specify the Datset_id in the input file when there are many data sets?
  2. There are no errors in the Events

 

  1. But I don't see any history?

 

  1. How do I know whether PSO processed an offer request successfully? What I am missing here.

Many Thanks,

Kasun

 

icon

Best answer by Alexander Heinze 30 January 2024, 17:45

View original

8 replies

Userlevel 5
Badge +13

Hi,

Please find my response for what you have raised.

 

  1. Do I need to Specify the Datset_id in the input file when there are many data sets? Yes. You need to.

If you need to find out what happened to your request please navigate to the following path in PSO

Archive-->Audits

Here, there should be a request file with the description as ‘Appointment booking’ & a plan change file with the description of ‘Schedule’. You can click on them & press ‘view changes’ to find out what has happened.

Hope this helps. Cheers! 

Userlevel 2
Badge +8

Hi @Charith Fernando ,

Thanks, this is what I see, but its not Appointment booking type as mentioned.

What is missing in the XML? Do I need to use the same <Input_Reference> in Appointment booking xml similar to the Load file?

 

 

All the information loaded in the XML can be seen here.

 

 

Also still, why the Appointment booking History is not shown still connected to the Dataset>?

Thanks,

Kasun

Userlevel 6
Badge +18

@KAMANUK here’s a working sample request from Postman. If your activity exists already, no need to send all the activity details again.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dsScheduleData xmlns="http://360Scheduling.com/Schema/dsScheduleData.xsd">
<Input_Reference>
<id>OSV-0001</id>
<datetime>2022-03-01T06:00:00</datetime>
<input_type>CHANGE</input_type>
<dataset_id>LXDEMO</dataset_id>
<account_id>.....</account_id>
</Input_Reference>
<Appointment_Request>
<id>{{$randomInt}}</id>
<activity_id>A001-APPT</activity_id>
<number_of_slots>40</number_of_slots>
<offer_expiry_datetime>2022-03-01T06:05:00</offer_expiry_datetime>
<appointment_template_id>2-Hourly</appointment_template_id>
<appointment_template_datetime>2022-03-01T06:00:00</appointment_template_datetime>
<appointment_template_duration>P10D</appointment_template_duration>
<blocking>false</blocking>
</Appointment_Request>
<Activity>
<id>A001-APPT</id>
<activity_class_id>CALL</activity_class_id>
<base_value>10000</base_value>
<duration>PT60M</duration>
<location_id>A001-APPT</location_id>
<activity_type_id>Normal</activity_type_id><priority>1</priority></Activity>
<Activity_Status>
<activity_id>A001-APPT</activity_id>
<status_id>0</status_id>
<visit_id>1</visit_id>
<date_time_stamp>2022-03-01T06:00:00</date_time_stamp>
<date_time_status>2022-03-01T06:00:00</date_time_status>
<duration>PT60M</duration>
</Activity_Status>
<Location>
<id>A001-APPT</id>
<latitude>48.59966893</latitude>
<longitude>13.24591052</longitude>
</Location>
<Activity_SLA>
<sla_type_id>Default</sla_type_id>
<activity_id>A001-APPT</activity_id>
<datetime_start>2022-03-04T06:00:00</datetime_start>
<datetime_end>2022-03-11T06:00:00</datetime_end>
<priority>1</priority>
<start_based>true</start_based>
</Activity_SLA>
</dsScheduleData>

 

Userlevel 2
Badge +8

Hi @Alexander Heinze.

Many Thanks,

I can see an Appointment booking type Audit now. Does that mean PSO is producing an offer Respond?

 

Also why I could not see the details in Dataset history?

 

Thank you,

Kasun

Userlevel 6
Badge +18

On your selected audit record, click View Changes. You should see the appointment offers (not sure if you are supposed to see Requests under the dataset though).

Similar in Postman:

 

Userlevel 2
Badge +8

Hi @Alexander Heinze ,

Thank you,

Here I could not see any offers, what could be the reason for that.

Regards,

Kasun

 

Userlevel 6
Badge +18

Hi @Alexander Heinze ,

Thank you,

Here I could not see any offers, what could be the reason for that.

Regards,

Kasun

 

No idea… What system is calling PSO? 

Userlevel 2
Badge +8

@Alexander Heinze Thanks for your support, finally it worked :)

Reply