Hi,
I’m trying to get list of docs(Serial No docs).
This gives me an error
frappe.db.get_list('Serial No', {
fields: [ 'main_module' ],
filters: {
name: snCount
}
}).then(records => {
console.log(records);
});