WebCrmApiSearchOpportunity Method |
Returns a list of Opportunity_ID’s (max 10000).
The list is sorted by opportunity number and creation date.
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 SearchOpportunityResult SearchOpportunity(
int searchFieldNumber,
string searchValue,
long organisationID,
SearchOptions options
)
Public Function SearchOpportunity (
searchFieldNumber As Integer,
searchValue As String,
organisationID As Long,
options As SearchOptions
) As SearchOpportunityResult
public:
SearchOpportunityResult^ SearchOpportunity(
int searchFieldNumber,
String^ searchValue,
long long organisationID,
SearchOptions options
)
member SearchOpportunity :
searchFieldNumber : int *
searchValue : string *
organisationID : int64 *
options : SearchOptions -> SearchOpportunityResult
Parameters
- searchFieldNumber
- Type: SystemInt32
Identifies type of data used for the search:
- 1: Opportunity number (Delivery number).
- 2: Pipeline level ( 0 to 14 ) ( 13 = won, 14 = lost ).
- X: Custom field value. X can be 101 to 116 (= custom field 1 to 16).
- X: Search field. X can be 121 or 122 ( op_search1, op_search2 ).
- X: Lost field. X can be 131 to 133 ( op_lost1, op_lost2, op_lost3 ).
- 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. - organisationID
- Type: SystemInt64
Organisation ID.
This value can be zero to search in all organisations
or greater than 0 to limit to a specific organisation. - options
- Type: dk.webCRM.ApiSync.BusinessLayer.EnumsSearchOptions
Enables specify additional search options:
IgnoreCase: indicates whether to ignore case.
Return Value
Type:
SearchOpportunityResultReturns error status and a list of opportunity ID’s.
Examples
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
ErrorStatus errorStatus;
TicketHeader ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus);
SearchOpportunityResult result = Proxy.SearchOpportunity(ticket, 1, "000320", 0, SearchOptions.None);
See Also