Click or drag to resize
Infosoft Logo

InfoWebXMLWebServiceSearchForCustomer Method

Returns a collection of InfoWebCustomerInfo objects based on the combination of search parameters and search values. The search parameter is of type enum and the search values can contains firstname, lastname, zipcode, birthdate or externalId. All parameters except title code ​​are optional. Use enum type NONE for all search parameters that should be empty. If no titlecode is given no subscription details will be loaded

Namespace: Infosoft.Webservices
Assembly: Infosoft.Webservices (in Infosoft.Webservices.dll) Version: 4.00.0.0
Syntax
public InfoWebCustomers SearchForCustomer(
	string titleCode,
	SearchParameter searchParameter1,
	string searchValue1,
	SearchParameter searchParameter2,
	string searchValue2,
	SearchParameter searchParameter3,
	string searchValue3,
	SearchParameter searchParameter4,
	string searchValue4
)

Parameters

titleCode  String
An optional title code used to load subscription data for the found customers
searchParameter1  SearchParameter
Enum search parameter 1
searchValue1  String
search value 1
searchParameter2  SearchParameter
Enum search parameter 2
searchValue2  String
search value 2
searchParameter3  SearchParameter
Enum search parameter 3
searchValue3  String
search value 3
searchParameter4  SearchParameter
Enum search parameter 4
searchValue4  String
search value 4

Return Value

InfoWebCustomers
A collection of InfoWebCustomerInfo objects, with status code '00' if customer was found successfully. If no customer was found it returns an empty collection, and if the title is not found it returns status code '55'.
Remarks
It is possible to add one or more wildcard characters like % in FIRSTNAME or LASTNAME. If the FIRSTNAME or LASTNAME contains % a "LIKE" comparison will be made in the SQL statement. Example: "%HANSEN," "HANSEN%" or "%HANSEN%".
See Also