search_customer_nested_filters
POST /search_customer_nested_filters
The call can be used for complex search in customer fields using the logical operator provided by the user.
To get the TOTAL COUNT of list of customers for the search criteria.
Use this method with only_counted = 'Y' FIRST to determine how many total records there are for the given criteria.
After you call this method with only_counted = 'Y', then call again this method with only_counted = 'N', and pass the required paging parameters.
Bellow there are some examples.
Get all active customers, not flagged as export, belong to categories code 1 'JEW','KIOSK','PHO' and customer name containing the word 'JEWELLERY' ordered by customer name.
SQL: WHERE Active=1 AND Export=0 and CategoryCode1 IN ('JEW','KIOSK','PHO') and CustomerName Like '%JEWELLERY%'
Get all active customers, not flagged as export, belong to categories code 1 'JEW','KIOSK','PHO' and customer name containing the word 'JEWELLERY' ordered by customer name.
SQL: WHERE Active=1 AND Export=0 and CategoryCode1 IN ('JEW','KIOSK','PHO') and CustomerName Like '%JEWELLERY%'
More examples bellow.
Get all customers with exta text field 1 not empty and date of birth between 01/01/1970 and 31/12/1980 and balance between 100 and 1000 ordered by balance, birth of date and customer name.
SQL: WHERE ISNULL(TextVal1,'') <> '' AND convert(date,DOB) BETWEEN CONVERT(date, '1970-01-01') and CONVERT(date, '1980-12-31') AND ISNULL(Balance,0) Between 100 And 1000 ORDER BY Balance asc,DOB asc, CustomerName asc
Get all customers with general ledger containing the code '41192' and detail account header containing the code '1222' ordered by general ledger and customer name
SQL: WHERE GeneralLedger Like '%41192%' and DetailAccountHeader Like '%1222%'