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.WebServiceAssembly: dk.webCRM.ApiSync.WebService (in dk.webCRM.ApiSync.WebService.dll) Version: 2.0.0.5 (2.0.0.5)
Syntaxpublic QuickSearchResult QuickSearch(
string dbnCode,
string userName,
string password,
QuickSearchMode searchMode,
string searchValue,
long userID,
SearchOptions options
)
Public Function QuickSearch (
dbnCode As String,
userName As String,
password As String,
searchMode As QuickSearchMode,
searchValue As String,
userID As Long,
options As SearchOptions
) As QuickSearchResult
public:
QuickSearchResult^ QuickSearch(
String^ dbnCode,
String^ userName,
String^ password,
QuickSearchMode searchMode,
String^ searchValue,
long long userID,
SearchOptions options
)
member QuickSearch :
dbnCode : string *
userName : string *
password : string *
searchMode : QuickSearchMode *
searchValue : string *
userID : int64 *
options : SearchOptions -> QuickSearchResult
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:
- Search for tele numbers (searches for telephone, fax, direct and mobile numbers).
- Search for Organisation name or Organisation name – Division name.
- Search for Person name.
- 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:
QuickSearchResultReturns error status and a list of data.
ExamplesWebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
QuickSearchResult result1 = proxy.QuickSearch("cm1111aaaaaa", "username", "password",
QuickSearchMode.TeleNumbers, "%2430", 111, SearchOptions.None);
See Also