- Special case
- Required application feature
In french: ContactAjoute
Adds a contact:
- in a Lotus Notes or Outlook address book.
Caution: This function cannot be used to add a contact into the address book of an Outlook Express messaging.
- into the list of contacts on the device (Android, iPhone or iPad, Universal Windows).
// Initialize the variables of Contact structure
// Fill the variables for the new contact
mContact.Name = "Smith"
mContact.FirstName = "Adriana"
mContact.Email = "email@example.com"
// Add the contact
IF ContactAdd(SessionID) = True THEN
Error("Error during the addition", ErrorInfo())
// Local variables
tContact is Contact
tPhone is Phone
tContact.Name = EDT_LastName
tContact.FirstName = EDT_FirstName
// Home phone numbers
IF EDT_HomePhone <> "" THEN
tPhone.PhoneNumber = EDT_HomePhone
tPhone.Type = phoneHome
IF NOT ContactAdd(tContact, gSource) THEN
Error("Unable to create the contact.")
Adding a contact into the Lotus Notes or Outlook messaging Hide the details
<Result> = ContactAdd(<Session identifier>)
Adding a contact to the device's contact list Hide the details
<Result> = ContactAdd(<Contact> [, <Source>])
- True if the addition was performed,
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Contact>: Contact variable
Name of the Contact variable corresponding to the contact to add.
<Source>: Optional ContactSource variable
Name of the ContactSource variable corresponding to the source or to the account into which the contact will be added. If this parameter is not specified, the contact will be associated with no account.
To display the New Contact window in the device's native Contacts application, use ContactCreate
Required application feature
When this function is used, an application feature is declared in the application generation wizard.
Required feature: Contacts
This feature allows the applications to access the contacts.
This page is also available for…