CommitCRM Contact by Date

This example uses a TimeSpan of two hours to determine the date two hours prior to the runtime of the code. The purpose is to identify the Contacts created during the last two hour. 

Alternatively if it is preferred to use a fixed date, then on Line 37 change the value to be equal to a string. The syntax required of the date field in CommitCRM is in the comment on Line 37. 

The output of this code snippet displays a table. If the Account doesn’t have a company name, then the contact is considered to be a residential customer. 

This example is written using .NET Core C#