Skip to main content

Interface IPhoneListAgent

Namespace: SuperOffice.WebApi.Agents
Assembly: SuperOffice.WebApi.dll
Collection of all services for searching for person or contact (company) phone numbers.

Implements

IAgentBase, IDisposable

Methods

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&gt; The rank of the history item

GetContactPhonesAsync(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[]&gt; 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[]&gt; The department phone list

GetFavoritesPhonesAsync(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[]&gt; The favorite contact phone list

GetPreferencesAsync(RequestOptions)

Getting Phone List Preferences from the CRM 5 user preferences

Parameters

requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task<PhoneListPreferences&gt; The Phone List Preferences

SearchAsync(string, RequestOptions)

Searching the phone list. Using default search preferences or the preferences already set by the PhoneListPreferences Service

Parameters

searchString string The search string requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task<PhoneListItem[]&gt; The resulting phone list

SearchWithPreferencesAsync(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[]&gt; The resulting phone list.

SetPreferencesAsync(PhoneListPreferences, RequestOptions)

Setting Phone List Preferences to the CRM 5 user preferences

Parameters

preferences PhoneListPreferences The preference that is set as user preferences requestOptions RequestOptions Override language/culture codes on this request.

Returns

Task