LogLeadPhone(Int32,String,String,String,TimeSpan) Method
The objid of the lead for the phone log.
Contact's first name.
Contact's last name.
Contact's phone number.
Time that the phone call lasted.
Log a phone call for a Lead. This overload takes a set of required parameters for the API.
Syntax
'Declaration
Public Overloads Function LogLeadPhone( _
ByVal _leadObjid_ As Integer, _
ByVal _contactFirstName_ As String, _
ByVal _contactLastName_ As String, _
ByVal _contactPhone_ As String, _
ByVal _duration_ As TimeSpan _
) As ToolkitResult
public ToolkitResult LogLeadPhone(
int _leadObjid_,
string _contactFirstName_,
string _contactLastName_,
string _contactPhone_,
TimeSpan _duration_
)
Parameters
leadObjid
The objid of the lead for the phone log.
contactFirstName
Contact's first name.
contactLastName
Contact's last name.
contactPhone
Contact's phone number.
duration
Time that the phone call lasted.
Return Value
The following values are populated in the ToolkitResult object returned by the API method:
- Objid - The Objid of the PhoneLog.
Remarks
The objid of the lead must be specified (since no other information on the lead is unique), and the description (phone text). A contact for the log must be specified. If the lead is also the contact (and not a real contact), then leave the first, last, and phone fields blank, and this will use the lead as the contact. The length of the phone call (in seconds) must be supplied.
There are a variety of optional items that can be set, including the action type of the call, when the call started, and who logged the call.
The API can also generate a time bomb (for business rule notification).
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server family