Click or drag to resize
WebCrmApiQuickSearch Method
Searches for an Organisation/Person basing on the given parameters. This method performs its own separate authentication and does not require calling Authenticate and EndSession methods.

Namespace: dk.webCRM.ApiSync.WebService
Assembly: dk.webCRM.ApiSync.WebService (in dk.webCRM.ApiSync.WebService.dll) Version: 2.0.0.5 (2.0.0.5)
Syntax
public QuickSearchResult QuickSearch(
	string dbnCode,
	string userName,
	string password,
	QuickSearchMode searchMode,
	string searchValue,
	long userID,
	SearchOptions options
)

Parameters

dbnCode
Type: SystemString
The name of the database
userName
Type: SystemString
Username
password
Type: SystemString
Password
searchMode
Type: dk.webCRM.ApiSync.BusinessLayer.EnumsQuickSearchMode
Identifies type of data used for the search:
  1. Search for tele numbers (searches for telephone, fax, direct and mobile numbers).
  2. Search for Organisation name or Organisation name – Division name.
  3. Search for Person name.
  4. Search for Person email.
searchValue
Type: SystemString
Value used for the search. It may include "%" in the beginning or end as wild cards. Search value must not exceed 50 characters in length.
userID
Type: SystemInt64
ID of the user to apply for the search.
options
Type: dk.webCRM.ApiSync.BusinessLayer.EnumsSearchOptions
Enables specify additional search options: IgnoreCase: indicates whether to ignore case.

Return Value

Type: QuickSearchResult
Returns error status and a list of data.
Examples
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();

QuickSearchResult result1 = proxy.QuickSearch("cm1111aaaaaa", "username", "password",
        QuickSearchMode.TeleNumbers, "%2430", 111, SearchOptions.None);
See Also