Interface IPhoneListAgent
Namespace: SuperOffice.WebApi.AgentsAssembly: SuperOffice.WebApi.dll Collection of all services for searching for person or contact (company) phone numbers.
Implements
IAgentBase, IDisposableMethods
AddToFavoritesAsync(int, RequestOptions)
Adds a new contact to the history/favorites. Returns the rank of the new history item. If the contact already existed in the history, it isn’t added but the rank is updated.Parameters
contactId int
The contact id
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<int> The rank of the history itemGetContactPhonesAsync(int, RequestOptions)
Returns an array of phone list items for all the persons belonging to a contact (company). The in-parameter must be a valid contact-id.Parameters
contactId int
The contact id
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<PhoneListItem[]> The contacts phone list.GetDepartmentPhonesAsync(int, RequestOptions)
Returns an array of phone list items with the in-parameter as restriction. The in-parameter must be a valid department id (UserGroupId).Parameters
departmentId int
The department to get the phone list for
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<PhoneListItem[]> The department phone listGetFavoritesPhonesAsync(RequestOptions)
Returns an array of phone list items with the Contacts in the users favorites dropdown list.Parameters
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<PhoneListItem[]> The favorite contact phone listGetPreferencesAsync(RequestOptions)
Getting Phone List Preferences from the CRM 5 user preferencesParameters
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<PhoneListPreferences> The Phone List PreferencesSearchAsync(string, RequestOptions)
Searching the phone list. Using default search preferences or the preferences already set by the PhoneListPreferences ServiceParameters
searchString string
The search string
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<PhoneListItem[]> The resulting phone listSearchWithPreferencesAsync(string, PhoneListPreferences, RequestOptions)
Searching the phone list. Search is based on the supplied preferences.Parameters
searchString string
The search string.
preferences PhoneListPreferences
The search preferences
requestOptions RequestOptions
Override language/culture codes on this request.
Returns
Task<PhoneListItem[]> The resulting phone list.SetPreferencesAsync(PhoneListPreferences, RequestOptions)
Setting Phone List Preferences to the CRM 5 user preferencesParameters
preferences PhoneListPreferences
The preference that is set as user preferences
requestOptions RequestOptions
Override language/culture codes on this request.