we have the strangest issue when sending out emails.
Some years ago, we created a new customer with email address hello@domain.com.
After some months, we changed the email address in the customer card to new-email@domain.com. We also removed the contact that was associated with the first email.
Every time we send out an email (invoice or credit note), by default it always shows hello@domain.com even though this email address is nowhere to be found in the customer card.
I adapted the codeunit from Yun Zhu's post (https://yzhums.com/31281/) and modified it to EmailAddress := Cust."E-Mail"; and now, by default, it shows the customers default email address.
I would like to avoid customization for this type of thing as it should be default. Any idea?
I also tried setting a specific email from the document layout and it works but I don't want to manage exceptions for customer that changed their email address.
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.