POST /sn_apptmnt_booking/appointment/appointment - Not working

Supriyo930
Giga Contributor

Hi All,

 

I am new to this community, and this my first message. 

 

I have a need to create ServiceNow Walk Up Appointments from another application. I am trying to use the below api for the same: POST /sn_apptmnt_booking/appointment/appointment

This api has got way too many required input parameters compared to what you require when you create an appointment directly in the application apparently.

The place where I am getting stuck to understand what should it have for "taskTable" and "taskId" required parameters.

If someone can help me with :

1. Is this the right API to create Walk up appointments from outside the application? If not, please suggest the right api with the required parameters along with a sample.

2. If this is the correct API, what should be values of  "taskTable" and "taskId" and why?

 

TIA.

1 REPLY 1

iDNS
Tera Expert

This creates an record into Appointment Bookings (sn_apptmnt_booking_appointment_booking) table but not into Walk-up Appointments (wu_appointment) table.  taskTable is the something like incident/sc_task & taskId is the sys_id of the record. 

"taskTable":"incident", 
"taskId":"81fb71051b61b1d01d3b5fc4464yt123",