Skip to main content
Using the Appointment entity exposed in the SuperOffice.CRM.Entities namespace is one of the easiest ways to create an appointment, as shown in the example below.

Code

CS

Walk-through

After an SoSession has been created, we proceed on to creating an appointment. To create an appointment, it is required to create an instance of the Appointment entity using the CreateNew method exposed in the Associate class, after which the default values for the entity will be set using the SetDefaults method like this:
CS
The next section of the code shows how values are assigned to properties exposed by the entity. Pay attention to how we assign the Alarm property:
CS
The HasAlarm property should be assigned first before the value for the Alarm property is assigned. Once the required values to the properties of the Appointment entity have been added or assigned it could be saved with the Save method:
CS