Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to send e-mail automatically with the report to differents contact person regard to the type of the report?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Iwould like to send automacally e-mail to different contact person attach to the company. Like with the segmentation of contact.
I mean that may be CEO (client side) will receive invoice with the account personn (client side) automatically by mail when I post my  sales order, purchase people(client side) will receive my sales order confirmation automatically by mail when I print it,, and acount peple(client side) will receive remind reports.

It means that I have done before a classification of my contact personn.

So, how to do this? does someone have already worked on it?

All response will be appreciate, even without classification( just send mail in auto mode to one personn when I print a report).

*This post is locked for comments

  • Suggested answer
    Saurabh Shah Profile Picture
    Saurabh Shah 4,560 on at
    RE: How to send e-mail automatically with the report to differents contact person regard to the type of the report?

    Please refer below discussion on Community.

    community.dynamics.com/.../145905.aspx

    Saurabh Shah

  • Verified answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: How to send e-mail automatically with the report to differents contact person regard to the type of the report?

    best you buy the nav 2013 extended pack and use then the crm module for bulk mailing using segments.

    follow msdn.microsoft.com/.../hh165084(v=nav.70).aspx

    a feature list of the nav 2013 packages

    community.dynamics.com/.../microsoft-dynamics-nav-2013-navision-modules-starter-pack-extended-pack-and-extras.aspx

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to send e-mail automatically with the report to differents contact person regard to the type of the report?

    In fact, I think the issue will be of complexe function of mail sending (not already existing in NAV2013R2, but may be existing in dynamics CRM???). Which one will require a complete development, including adding fields on the contact card (1- boolean field for acceptance to receive document in automatic mode) (2-classification of documents types that this contact will be able to receive. By default , the first contact should be set to receive all documents types), set after every contacts cards and then take care of the sending functions regard to the document type...  

    So, if someone have time to develop this, and get the genius idea how to do, I will be interested.

  • keoma Profile Picture
    keoma 32,675 on at
    RE: How to send e-mail automatically with the report to differents contact person regard to the type of the report?

    hi, if your question is answered, please verify. thx.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to send e-mail automatically with the report to differents contact person regard to the type of the report?

    Thank you for links. It helped me also.

  • Verified answer
    Tharanga Chandrasekara Profile Picture
    Tharanga Chandrasekara 23,116 on at
    RE: How to send e-mail automatically with the report to differents contact person regard to the type of the report?

    Check this link also :

    community.dynamics.com/.../145905.aspx

  • Verified answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: How to send e-mail automatically with the report to differents contact person regard to the type of the report?

    hi,

    add the email send code e.g. at the end of the OnRun-Trigger of CU 80 Sales-Post or at the end of the Posting Action Code in Page Sales Order.

    you will need CU 400 Smtp (Functions CreateMessage,Send) for creating/sending the mail message and Report.SaveAsPdf for creating the Posted Invoice report (as pdf). It's possible to attach a pdf doc to a mail (Function AddAttachment). to automatically send the order confirmation when printing add the email send code at the end of the OnPostReport-Trigger of Report 205.

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    Tharanga Chandrasekara 23,116 on at
    RE: How to send e-mail automatically with the report to differents contact person regard to the type of the report?

    Check this post as well :

    www.mibuso.com/dlinfo.asp

    use following codeunits :

    Codeunit 397 - for Outlook

    Codeunit 400 - SMTP Mail

  • Verified answer
    Tharanga Chandrasekara Profile Picture
    Tharanga Chandrasekara 23,116 on at
    RE: How to send e-mail automatically with the report to differents contact person regard to the type of the report?

    Check below links :

    blogs.msdn.com/.../send-email-with-pdf-attachment-in-nav-2009.aspx

    saurav-nav.blogspot.com/.../send-mail-with-attachment-from-navision.html

    Specially this

    dynamicsuser.net/.../42141.aspx

    If you want to do this automatically follow the first link and create the logic in a report or codeunit. Then run it through NAS

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,375 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans