Hi,
I have been searching for few days and tried different combinations to test the possibility of querying ERPNext for two fields value existance. The scenario I am trying to achieve is when our website gets a new order, I query ERPNext to check if the phone number or email already exist and accordingly create the order with the existing contact details. When I try the below approach, if the customer has changed their mobile or email address the query returns no records since its using AND operator. I tried different combinations of OR and II but kept getting errors. Appreciate your guidance and suggestions, thanks.
@ChillarAnand Thanks, do you mean to have the code as per the below example? https://mydomain/api/resource/Contact?fields=["*"]&or_filters=[["email_id","=","xyz.abcd@gmail.com"], ["mobile_no","=","12345678"]]
If so, I will try it after updating my docker image…