web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Create Outlook Message with word doc attachment

(0) ShareShare
ReportReport
Posted on by 5,136

I want to be able to change how we send a report via email to clients.  For one, I want to be able to create an outlook message so as to allow users to edit the body and/or attachments if need be before sending.  Users also want to see the sent outlook messages in their sent items so they can somehow keep track.  Please help point me to the links on how to make this happen.  Currently when you click email, it just sents directly to recipients most likely using the SMTP server.  Last but not least, is it fairly easy to send attachments as Word document instead of pdf? i.e., send report as word document.

*This post is locked for comments

I have the same question (0)
  • jcastro Profile Picture
    2,245 on at

    What NAV version are we talking about? :) 

  • keoma Profile Picture
    32,729 on at

    hi,

    is this nav 2013 or nav 2013 r2?

    is this email sending fct. nav standard functionality or a customization?

  • mbr Profile Picture
    5,136 on at

    Nav 2013 r2.  I gather it will be a customization because we are changing behavior of Email Shipment from Posted Sales Shipment.

  • Verified answer
    keoma Profile Picture
    32,729 on at

    hi,

    use codeunit 397 Mail.

    sample code:

    // variables

    variable: mailer | codeunit | Mail

    // save the report as word doc to a local folder

    REPORT.SAVEASWORD(<You Rep. Number>, 'c:\temp\test.docx', Rec);

    // create outlook mail message

    mailer.NewMessage('sender@test.com','','Subject','Body','c:\temp\test.docx',TRUE);

  • mbr Profile Picture
    5,136 on at

    Thank you Jonathan!

Under review

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans