Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

need alert mails.

Posted on by Microsoft Employee

Dear Experts,

As an system administrator, I want if any user download any master report, I will get a mail with the details which report has been downloaded, Date and Time and the user name. Kindly advise.

Thanks

With Regards

Mandeep Kaur

*This post is locked for comments

  • Suggested answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: need alert mails.

    Hello,

    You have to write

    OnPreReport Trigger and OnPostReport Trigger. See the bellow screenshot.

    NotPreview.png

    Note:

    1)    Based on your Mail Codeunit function pass the parameters.

    2)    For Attachment you have to write code, [Still try by only notification later think and pass attachment file].

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: need alert mails.

    Hi Binesh,

    Thanks, Where I need to write this code, under which trigger. Kindly advise.

    Thanks

    With Regards

    Mandeep Kaur

  • Suggested answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: need alert mails.

    Write something like

    If not CurrReport.Previview Then

          Mail.NewMessage(toaddress,......);

    Note users can preview, also users can download from request page.

    This is the alternat solution of your query.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: need alert mails.

    Hi Binesh,

    Users need to save the report. Block the save option will not resolve the purpose. the purpose is to retrieve the information that which user is downloading which report as a mail alert. Please advise.

    Thanks

    With Regards

    Mandeep Kaur

  • Suggested answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: need alert mails.

    Hello Mandeep,

    You can disable the print functionalities, for that you have to write code in OnPreReport Trigger, Like:

    OnPreReport()

    IF NOT CurrReport.PREVIEW THEN BEGIN

        ERROR('Printing not allowed\\'+USERID); // you can write what you want in this block

    END;

    Try this, you can expand your logic.

    Reference

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: need alert mails.

    Hi Sir,

    Yes, for security purpose I want to know who is downloading which report. This will also resolve the purpose. Actually from the link, which are provided by Nageshwar sir, they are based on NAV 2009 and I am not able to understand the steps which need to follow.

    Please advise

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: need alert mails.

    I also suppose this is not possible as there is no standard trigger to catch from that already generated report.

    However, I suppose that the requirement can be modified - why do you need only to track who had saved the report? Can you be ok to know who has actually run the report (regardless the fact that he had saved it or not)?

    To me, saving the report can be known for the security reason, but it is basically the same as the running the report then... And if so, you can trigger the running of the report itself from NAV as Nareshwar suggested.

  • Suggested answer
    Ashwini Tripathi Profile Picture
    Ashwini Tripathi 4,624 on at
    RE: need alert mails.

    As per my knowledge, as of now not possible. Untill we have trigger for Saveas.. option.

    If it is saved using code then we can handle, but with system functionality i don't see scope of same.

    If any one can suggest, if i am missing anything.

    If out of box any customization by extending the dll used for this functionality can handle not sure.

    This need to be checked if we get any trigger in Navision when this functionality is invoked, as of now no idea of any such trigger.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: need alert mails.

    Hi,

    This conversation is regarding mail alert which I need when ever a user download any report an alert mail will sent from ERP to sysadmin. This what I want. Please advise.

    Thanks

    With Regards

    Mandeep Kaur

  • Suggested answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: need alert mails.

    hello Mandeep,

    according to your discussion, Save as PDF, Word, Excel is a standard functionality.

    if any custom Action/functions in your report, so you can track.

    That standard functionality you can Hide, in NAV 2016 with CU 9 And NAV 2015 with CU 21.

    For more info click here

    ------

    For your requirement i hope some experts are trying to develop new solution.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans