Skip to main content

Notifications

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

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: How to notify timesheet Approver with Email dynamics nav 2013 R2

    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.

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    Tharanga Chandrasekara 23,116 on at
    RE: How to notify timesheet Approver with Email dynamics nav 2013 R2

    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.

  • MedInfoTech Profile Picture
    MedInfoTech 1,392 on at
    RE: How to notify timesheet Approver with Email dynamics nav 2013 R2

    Hi,

    10'x for your help

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

  • Verified answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: How to notify timesheet Approver with Email dynamics nav 2013 R2

    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;

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    Tharanga Chandrasekara 23,116 on at
    RE: How to notify timesheet Approver with Email dynamics nav 2013 R2

    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. 

  • MedInfoTech Profile Picture
    MedInfoTech 1,392 on at
    RE: How to notify timesheet Approver with Email dynamics nav 2013 R2

    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
    keoma Profile Picture
    keoma 32,675 on at
    RE: How to notify timesheet Approver with Email dynamics nav 2013 R2

    hi,

    automatically or manually?

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

  • Suggested answer
    Tharanga Chandrasekara Profile Picture
    Tharanga Chandrasekara 23,116 on at
    RE: How to notify timesheet Approver with Email dynamics nav 2013 R2

    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 . 

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…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans