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)
Answered

How to notify timesheet Approver with Email dynamics nav 2013 R2

(0) ShareShare
ReportReport
Posted on by 1,392

Hi experts,

i have just a simple question 

How to notify timesheet Approver with Email dynamics nav 2013 R2

pls how can i do that ??

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    23,118 on at

    You can do this with codeunit 397 or 400 depending on your requirement. 

    Please refer below links, hope you can get a idea,

    www.dynamics101.com/.../sending-customized-emails-dynamics-nav

    community.dynamics.com/.../143837.aspx

    At the time of approval you can call the codeunit 397 and create the mail using Outlook or 400 for SMTP . 

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    hi,

    automatically or manually?

    you can use CU 397 Mail (Outlook Mail ...) or CU 400 Smtp (no Outlook).

  • MedInfoTech Profile Picture
    1,392 on at

    Hi Jonathan,

    I actually want this Automatically,

    I mean when a timesheet is created, I want a Email is automatically sent to the approver.

    that's my problem

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    23,118 on at

    Refer this article

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

    This article has all the necessary coding you need to know about setting up a mail. 

  • Verified answer
    keoma Profile Picture
    32,729 on at

    hi,

    the time sheets are created by the (processingonly) report 950 "Create Time Sheets". You'll need to do some changes. Add  your code to the OnPostReport-Trigger using the CU 400, e.g.:

    smtpMail.CreateMessage(SenderName,SenderAddress,Recipients,Subject,Body,HtmlFormatted);

    smtpMail.Send;

  • MedInfoTech Profile Picture
    1,392 on at

    Hi,

    10'x for your help

    But i don't know where should i add those lignes of code ?

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    23,118 on at

    Do you have development experience related to Dynamics NAV?

    If not I think you should start from the bottom and you need any help related to that please do revert us back.

    About the coding, as Jonathan explained in his post timesheets are created using a process only report and that report ID is 950 (Create Time Sheets).

    In that report after the report is processed (OnPostReport()) you need write your functionality with the use of codeunit 400.

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    hi,

    you need to start the Nav Development Environment. There you can change the Nav objects. But, you need a developer license to change objects, add code, fields, ... If you do not have that kind of license, you should contact a Nav Partner in your region.

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)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans