CreateContract(CreateContractSetup) Method
Setup object for API invocation.
Used to create a new contract. This overload takes a setup object.
Syntax
'Declaration
Public Overloads Function CreateContract( _
ByVal _setupParam_ CreateContractSetup _
) As ToolkitResult
public ToolkitResult CreateContract(
CreateContractSetup _setupParam_
)
Parameters
setupParam
Setup object for API invocation.
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
CreateContractSetup Class