NAV Developer's Corner Blog

Where NAV developers can learn about NAV features, customizations, troubleshooting, and bug fixing.
Mail Management - Bug Fix
by Tony Phan, October 2018

Starting with NAV 2015, a new table (9500 Email Item) and Codeunit (9520 Mail Management) was introduced as a method for sending emails, which can include attachments. However, up until NAV 2017, we can only include 1 attachment in each email. Beginning with NAV 2018, we can include up to 5 attachments but this is where I found a bug. This bug occurs only if we check the box "Edit in Outlook", where the email will be opened in Outlook for us to review before sending the email.


Email Dialog - Show Additional Attachments
by Tony Phan, October 2018

Beginning with NAV 2015 and up until NAV 2017, we can only include 1 attachment in each email, therefore, this was never an issue. However, beginning with NAV 2018, we can include up to 5 attachments. Unfortunately, the Email Dialog was not updated, thus we continue to see only 1. The bad part about this is that we can potentially send up to 4 more additional attachments without realizing it, if we opted to send it immediately without checking the "Edit in Outlook" option.