API AppointmentTypeNum and Appointment Type
Posted: Mon Jun 05, 2023 11:10 am
When getting appointment details, how does the AppointmentTypeNum value work? I don’t see API appointments returning values mapped to Appointment Type.
For instance, I pick Appointment Type “Cosmetic Whitening”, which in my definitions is set up with number 328. Then I save the appointment.
I’d assume when I get the appointment with AppointmentTypeNum 328, instead I get 7, which looks like it is the corresponding color from Setup->Appointments->Appointment Types.
Sample from definitions:
{
"DefNum": 7,
"ItemName": "Default",
"ItemValue": "",
"Category": 0,
"category": "AccountColors",
"isHidden": "false"
},
…
{
"DefNum": 328,
"ItemName": "Cosmetic Whitening",
"ItemValue": "",
"Category": 51,
"category": "WebSchedExistingApptTypes",
"isHidden": "false"
}
…
Is there a way for me to get a matching value in definitions for Appointment Type?
Thank you
For instance, I pick Appointment Type “Cosmetic Whitening”, which in my definitions is set up with number 328. Then I save the appointment.
I’d assume when I get the appointment with AppointmentTypeNum 328, instead I get 7, which looks like it is the corresponding color from Setup->Appointments->Appointment Types.
Sample from definitions:
{
"DefNum": 7,
"ItemName": "Default",
"ItemValue": "",
"Category": 0,
"category": "AccountColors",
"isHidden": "false"
},
…
{
"DefNum": 328,
"ItemName": "Cosmetic Whitening",
"ItemValue": "",
"Category": 51,
"category": "WebSchedExistingApptTypes",
"isHidden": "false"
}
…
Is there a way for me to get a matching value in definitions for Appointment Type?
Thank you