I’m trying to check if an Item exists via an HTTP GET to a frappe method. I am getting “Method Not Found”. I’m testing in Postman. /api/resource GETs are working fine.
I really need to use the frappe.db.exists() method to confirm if an Item Name (or Item Code) already exists.
I’ve tried a number of variations of the following:
GET https://erp.mysite.com/api/method/frappe.db.exists( ‘Item’, ‘AAAAA’) where ‘AAAAA’ is the item name to check
GET https://erp.mysite.com/api/method/frappe.db.exists?doctype=Item&name=AAAAA
etc.
I appreciate any guidance
Thanks!
Mike