ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

How to fetch list of data from Custom Doctype as Document

customization

#1

I have made a custom doctype for Scale Code which has two columns code and description.

I want to fetch the list in point of sale (POS.js), used frappe.getlist as below:

console.log(frappe.get_list(“Scale Codes”, {document_type: “Document”}));

what is the correct way?