frappe.db.get_list(‘Employee’, pluck=‘name’)
Pluck does not seems to work.
frappe.db.get_list(‘Employee’, pluck=‘name’)
Pluck does not seems to work.
@NCP not sure, why it is not working in my case, (bench version : 5.0.0 & frappe v12)
I haven’t any idea if it is worked on version 12 or not but it’s worked on version-13 and 14.
Thank You!
bench use example.combench migrateNOTE:
it should work as you we are in console
and you have admin permissions
but then also try this for debug and understanding more
trying using get_all just to testing in case
# Since User doctype is created by default so see if this is working
frappe.db.get_list('User', pluck='name')
frappe.db.get_all('User', pluck='name')
frappe.db.get_all('Employee', pluck='name')
# all try this it works same ... but diff in syntax
frappe.get_list('User', pluck='name')
frappe.get_all('User', pluck='name')
frappe.get_all('Employee', pluck='name')