CreateContract(String) Method
Used to create a new contract.
Syntax
'Declaration
Public Overloads Function CreateContract( _
ByVal _title_ As String _
) As ToolkitResult
public ToolkitResult CreateContract(
string _title_
)
Parameters
title
The title of the Contract.
Return Value
The following values are populated in the ToolkitResult object returned by the API method:
Remarks
Each contract requires a unique, valid title. Everything else is optional. You may specify either an account or contact for a contract (or neither), you may specify a contract ID or let the API auto-generate the contract ID for you. You may specify the user who created the contract as well as the contract’s administrator, and you may specify additional fields. You may have a creation time bomb generated (for notifications). The objid of the contract created is returned. You may also specify a bill-to and ship-to site. These sites will be related to the default schedule. If empty, no site is related. If you do not wish to associate an account or contact against the contract, leave the account and contact parameters empty. You may also initially dispatch the contract. If you specify a queue name, the contract will be dispatched to that queue.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server family
Reference
ContractsToolkit Class ContractsToolkit Members Overload List