OnTime Extension SDK Documentation
OnTime.Extensions.SDK Namespace / DataAccess Class / AddContact Method
A comprehensive Contact object.



In This Topic
    AddContact Method
    In This Topic
    Creates a new Contact record, or updates an existing Contact record.
    Syntax
    'Declaration
     
    
    Public Function AddContact( _
       ByVal contact As Customer.Contact _
    ) As Boolean
    'Usage
     
    
    Dim instance As DataAccess
    Dim contact As Customer.Contact
    Dim value As Boolean
     
    value = instance.AddContact(contact)
    public bool AddContact( 
       Customer.Contact contact
    )
    public:
    bool AddContact( 
       Customer.Contact^ contact
    ) 

    Parameters

    contact
    A comprehensive Contact object.

    Return Value

    Returns true if the Contact record was successfully created or updated. Otherwise, returns false.
    Remarks
    A reference to an existing Customer must be provided in the Contact.CustomerID field of contact.
    Requirements

    Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11, Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019, Windows Server 2022

    See Also