McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 528

↗ View in doc context
page
528
source
finesse/v12.5/developer-guide/developer-guide.md
chunk_id
finesse::v12.5::developer-guide::developer-guide::512

PhoneBook Class finesse.restservices.PhoneBook Extends finesse.restservices.RestBase Common Parameters PhoneBook is a list of contacts available to a user for a quick dial. PhoneBooks are assigned globally (to all agents) or to specific teams. Example _phoneBooks = _user.getPhoneBooks({ onCollectionAdd: _handlePhoneBookAdd, onCollectionDelete: _handlePhoneBookDelete, onLoad: _handlePhoneBooksLoaded }); _phoneBookCollection = _phoneBooks.getCollection(); for (var phoneBookId in _phoneBookCollection) { if (_phoneBookCollection.hasOwnProperty(phoneBookId)) { _phoneBook = _phoneBookCollection[phoneBookId]; etc... } } For additional parameters and methods, see RestBase Common Parameters, on page 450. Methods getContacts(handlers) Retrieves the collection of contact objects that is part of the PhoneBook. Parameters Required Description Type Name Yes An object containing the handlers for the request. For more information on handlers, see Request Handlers, on page 447. Object handlers Returns {finesse.restservices.Contacts} The Contacts object. getEmbeddedContacts() Retrieves either a URI or collection of contacts. Returns {String} The URI or finesse.restservices.Contacts object. getName() Retrieves the name of the PhoneBook. Returns {String} The name of the PhoneBook. Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 512 Cisco Finesse JavaScript APIs PhoneBook