Click or drag to resize

ContactServiceCreateEditableContactFromContact Method

Creates a new editable contact object from a given existing contact.

Namespace:  Avaya.ClientServices
Assembly:  AvayaClientServices (in AvayaClientServices.dll) Version: 550.0.60.0
Syntax
C#
public EditableContact CreateEditableContactFromContact(
	Contact contact
)

Parameters

contact
Type: Avaya.ClientServicesContact
The contact whose current values will be used to populate the new EditableContact.

Return Value

Type: EditableContact
An EditableContact that has all the editable properties set based on the specified input contact. Note that fields not supported by the enterprise source will not be used.
Remarks

This function can be used to create a new local contact from the results of a directory search performed by the ContactService.SearchContacts(SearchContactsWatcher ^,System::String ^,SearchScopeType,SearchSourceType,uint32_t,uint32_t) method. After creating an EditableContact from one of the search results, call the addContact method to create and save the new contact. Creating an enterprise contact from a local contact can be done using the same approach.

This method must be used to update an existing contact as well. After the new EditableContact is created, and the desired contact fields have been updated, use the UpdateContact(EditableContact, ContactServiceUpdateContactCompletionHandler) method to send a request.

See Also