OrderSearchFilter filter = new OrderSearchFilter();
filter.SearchCustomerFields = "OrderCustomfield=1";
var orderList = orderService.GetOrdersBySearch(filter);
any good example to search orders using Order custom fields?
OrderSearchFilter filter = new OrderSearchFilter();
filter.SearchCustomerFields = "OrderCustomfield=1";
var orderList = orderService.GetOrdersBySearch(filter);
any good example to search orders using Order custom fields?
If you want to search for values in CUSTOM fields, set OrderSearchFilter.SearchInCustomOrderFields to true
SearchCustomerFields is searching in the CUSTOMER fields:
Searching for one word:
filter.SearchCustomerFields = "Nicolai";
Searching for a phrase
filter.SearchCustomerFields = "\"Nicolai Pedersen\"";
Hi Nicolai
Thanks for the explanation
if i want to search one order custom field value, something like CustomerOrderfield=1, any possible way of doing it?
Currently not.
Best option is maybe to do a simple SQL on the database returning only the orderids using your criteria, and then pass those orderids to the orderservice.
BR Nicolai
Thanks Nicolai
You must be logged in to post in the forum