Web Page Viewer Control Add–in – Part 02 – Email Dialog

In the previous post, we have seen how the Web Page Viewer control add-in was used in the Report Viewer for displaying the reports that are saved as HTML.

In this post, we will see how the Web Page Viewer control add-in is used in the Page 9700 Email Dialog in NAV 2017. As this post is related to the control add-in, I have not covered the email sending functionality in detail.

Email Dialog page was introduced in NAV 2015, which will allow us to write the email for sending it to customer with report attached as a PDF. More details about the functionality can be found in the below links.

Send Documents as Email – NAV 2015
Send Documents as Email – NAV 2016

In NAV 2017 the functionality is further extended to use the customized Word Layout report as Email Body for sending it to the Customer & Vendor. You can also send email with a custom message based on the option (Custom Message) in the Message Content field available in the Email Dialog page. In the Microsoft Dynamics NAV Windows client you can decide to modify the email more in your default mail program.

Let’s see an example of how Email Dialog looks like from Posted Sales Invoice. Detailed setups are not covered in this post.

Windows Client:

Update the Email address of the customer in the Customer Card.

E_1

Navigate to Posted Sales Invoice:

E_2

Select the customer and open the Posted Sales Invoice. On the Actions tab, in the General group click / choose the Email.

E_3

Email Dialog pages is opened with Send Email caption. The value in the To field is fetched from the Customer’s Email field. Email body is displayed as HTML from the Custom Report Layout based on the setup. Edit in Outlook boolean field is visible only in Windows Client.

E_4

Web Client:

Navigate to Posted Sales Invoice:

E_5

Select the customer and open the Posted Sales Invoice. On the Actions tab, in the General group click / choose the Email.

E_6

Email Dialog pages is opened with Send Email caption. The value in the To field is fetched from the Customer’s Email field. Email body is displayed as HTML from the Custom Report Layout based on the setup. Edit in Outlook boolean field is not visible in Web Client.

E_7

Note: We need to setup the SMTP Mail Setup to test the email sending functionality.

After clicking OK an email is sent to the customer. Below is the preview of email received by the customer.

E_8

E_9

Hope this post provides you information about the Email Dialog to a certain extent.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s