OnTime Extension SDK Documentation
In This Topic
    Example Project 1
    In This Topic

    Overview

    This SDK example illustrates basic use of the OnTime SDK. The example initializes an independent extension and demonstrates a simple create/update operation on the Customers table of an OnTime account. One ribbon button is instantiated and is assigned to a method named CreateCustomer(). The CreateCustomer() method searches the database for a customer with the name Business, Inc. and assigns it to a variable named customer. If the variable customer is not empty, then the method will update the customer record with a new primary contact name. Otherwise, the method will create a new customer with some data regarding the customer’s address, phone number, email, etc.

    Find the Source Code

    Each example project is available with source code in C# and VB.NET. Locate the source code under the folder to which the OnTime Extension SDK was extracted.

    Source code for this sample in Visual Basic can be found under:

    Samples\Example Project 1\OnTime SDK Example 1 VB.sln
    

    Source code for this sample in C# can be found under:

    Samples\Example Project 1\OnTime SDK Example 1 CS.sln