Skip to main content
Collection of all services for searching for person or contact (company) phone numbers.

Constructors

NSPhoneListAgent()

Collection of all services for searching for person or contact (company) phone numbers.

Methods

AddToFavorites(Integer)

Adds a new contact to the history/favorites. If the contact already existed in the history, it isn’t added but the rank is updated.
Returns: CRMScript.Global.Integer - The rank of the new history item. Example:

GetContactPhones(Integer)

Returns an array of phone list items for all the persons belonging to a contact (company).
Returns: CRMScript.NetServer.NSPhoneListItem[] Example:

GetDepartmentPhones(Integer)

Returns an array of phone list items with the in-parameter as restriction.
Returns: CRMScript.NetServer.NSPhoneListItem[] Example:

GetFavoritesPhones()

Returns an array of phone list items with the Contacts in the users favorites dropdown list.
Returns: CRMScript.NetServer.NSPhoneListItem[] Example:

GetPreferences()

Gets Phone List Preferences from the CRM 5 user preferences
Returns: CRMScript.NetServer.NSPhoneListPreferences Example:

Search(String)

Searches the phone list using default search preferences or the preferences already set by the NSPhoneListPreferences Service
Returns: CRMScript.NetServer.NSPhoneListItem[] Example:

SearchWithPreferences(String,NSPhoneListPreferences)

Searches the phone list based on the supplied preferences.
Returns: CRMScript.NetServer.NSPhoneListItem[] Example:

SetPreferences(NSPhoneListPreferences)

Sets Phone List Preferences to the CRM 5 user preferences
Returns: CRMScript.Global.Void