Click or drag to resize
WebCrmApiSearchDelivery Method
Returns a list of Delivery_ID’s (max 10000). The list is sorted by delivery number and creation date.

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 SearchOpportunityResult SearchDelivery(
	int searchFieldNumber,
	string searchValue,
	long organisationID,
	SearchOptions options
)

Parameters

searchFieldNumber
Type: SystemInt32
Identifies type of data used for the search:
  • 1: Delivery number.
  • 2: Opportunity number.
  • X: Opportunity custom field value. Y can be 101 to 116 (= custom field 1 to 16).
  • X: Delivery custom field value. X can be 201 to 216 (= 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: SearchOpportunityResult
Returns error status and a list of delivery ID’s.
Examples
// Login and get a webservice ticket
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
ErrorStatus errorStatus;
TicketHeader ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus);

// Search
SearchOpportunityResult result = Proxy.SearchDelivery(ticket, 1, "%", 0, SearchOptions.None);
See Also