Hello community,
I am new here and have since recently integrated the wn-client API into my own custom application to get, insert and update documents from my ERPNext system.
Inserting and updating docs work just fine. Getting a document from a certain doctype by name also works.
The problem is that I am unable to get all the documents of a certain doctype, I keep getting the first item.
I have tried getting documents by filters in the hope that the result would be a list of all matching docs that match the filter, like so:
https://[my_erp].erpnext.com/server.py?cmd=webnotes.client.get&doctype=Item&filters={"is_stock_item" : "Yes"}The return value of this is the first document that matches the filter instead of all the documents that match the filter. Are filters supposed to return just one item?
I also tried the following statement:
https://[my_erp].erpnext.com/server.py?cmd=webnotes.client.get&doctype=ItemI believed that this would return all the documents of the doctype Item, but i get the error message:
Item Item does not existCould you please explain to me how I am supposed to get all the documents of a certain Doctype.
Yours sincerely,
John Green