Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Create Outlook Message with word doc attachment

Posted on by 5,124

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

  • mbr Profile Picture
    mbr 5,124 on at
    RE: Create Outlook Message with word doc attachment

    Thank you Jonathan!

  • Verified answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Create Outlook Message with word doc attachment

    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
    mbr 5,124 on at
    RE: Create Outlook Message with word doc attachment

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

  • keoma Profile Picture
    keoma 32,675 on at
    RE: Create Outlook Message with word doc attachment

    hi,

    is this nav 2013 or nav 2013 r2?

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

  • jcastro Profile Picture
    jcastro 2,245 on at
    RE: Create Outlook Message with word doc attachment

    What NAV version are we talking about? :) 

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans