Avaya Client Services API Reference (Windows)
Avaya Client Services API Reference (Windows)
Avaya.ClientServices
ContactService Class
ContactService Methods
AddContact Method
ChangeSearchContactsRequest Method
CreateContactGroup Method
CreateEditableContact Method
CreateEditableContactFromContact Method
DeleteContact Method
DeleteContactGroup Method
GetAvailableContactSourceTypes Method
GetContactGroups Method
GetContacts Method
GetMatchingContactForDirectoryContact Method
GetSelfContact Method
ResolveContacts Method
SearchContacts Method
SearchTerminals Method
UpdateContact Method

# ContactService CreateEditableContactFromContact 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#
Copy

    public EditableContact CreateEditableContactFromContact(
    	Contact contact
    )

#### Parameters

contact
  Type: Avaya.ClientServices
  Contact
  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, ContactService
UpdateContactCompletionHandler) method to send a request.

See Also

#### Reference

ContactService Class
Avaya.ClientServices Namespace
ContactService
CreateEditableContact
ContactService
AddContact(EditableContact, ContactService
AddContactCompletionHandler)
ContactService
UpdateContact(EditableContact, ContactService
UpdateContactCompletionHandler)

© 2017 Avaya LLC. All Rights Reserved.