Create an appointment row

An AppointmentRow refers to a row in the appointment database table. Therefore, it consists of basic data types supported by SQL. To create an AppointmentRow we use the SuperOffice.CRM.Rows namespace.

The following example shows how we create an appointment using the AppointmentRow class.

Code

[!code-csharpCS]

Walk-through

The first step of the example shows how to instantiate an AppointmentRow class and then the next step is to set the default values of it with the SetDefaults method.

[!code-csharpCS]

The next statements show how the different properties of the AppointmentRow are assigned. Once such assignments are made, the row could be saved with the Save method available in the AppointmentRow class.