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
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
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.
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.
Hi,
10'x for your help
But i don't know where should i add those lignes of code ?
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;
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.
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
hi,
automatically or manually?
you can use CU 397 Mail (Outlook Mail ...) or CU 400 Smtp (no Outlook).
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 .
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156