Get customer contact email

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.

Check this…

Hi @Leonardo_Augusto,

are you looking for something like this:{
   "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…