Skip to main content
Using the Contact entity exposed in the SuperOffice.CRM.Entities namespace is one of the easiest ways to create a follow-up, as shown in the example below.

Code

CS

Walk-through

After an SoSession instance has been created and the user authenticated we can proceed to create a contact. To create a contact, we create an instance of the Contact entity using the CreateNew methods exposed in the Contact 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. Once the required values to the properties of the Contact entity have been added or assigned it could be saved with the Save method.

Using assert