I want to get mobile number of all the person in a doctype, in a single place (new variable).
Can anyone help me out ?
What I tried so far is
frappe.call({
method:"frappe.client.get_list",
args: {
doctype:"Dummy User",
fieldname: [ "mobile","name1"],
},
callback: function(r) {
//var a=r.message[0]
console.log(r);
}
});
But its returning the name of persons present in that doctype. What i want is it returns all the mobile number of persons present in that doctype