Im currently having some difficulties using the new Magento v2 soap from the C # interface.
With php, I managed to do something like this:
$params["created_at"]["from"] = date("Ymd H:i:s",Functions::convert_time($dataDa)); $params["created_at"]["to"] = date("Ymd H:i:s",Functions::convert_time($dataA)); MageInterface::getSingleton()->shipmentList($params);
In this mode, I was able to find a list of orders that were created from $ dataDa to $ dataA without any problems. With C #, however, it seems that only the last of the selectors works.
My code is:
var cpf = new complexFilter[2]; cpf[0] = new complexFilter { key = "created_at", value = new associativeEntity { key = "to", value = uxDataA.DateTime.ToString("yy-MM-dd HH:mm:ss") } }); cpf[1] = new complexFilter { key = "created_at", value = new associativeEntity { key = "from", value = uxDataDa.DateTime.ToString("yy-MM-dd HH:mm:ss") } }); var filters = new filters(); filters.complex_filter = cpf; var risultato = mage.salesOrderList(sessionKey, filters);
In this mode, only created_at-> from the criteria is taken into account (it, as the second complex filter, overrides the previous one with the same key). Ideas?
Thanks in advance.
Alekc source share