How can I get a customer contact email?
Download Customer report. It has all information of customer that has been entered by all users.
I need get the email by script.
are you looking for something like this:
frappe.call({
"method": "frappe.client.get",
"args": {
"doctype": "Customer",
"name": yourcustomer
},
"callback": function(response) {
var customer = response.message;
if (customer) {
frappe.msgprint("Email: " + customer.email_id);
}
}
});
This will get the email of the primary contact of the customer…