web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Suppress Messages from Standard Report Programs

(0) ShareShare
ReportReport
Posted on by 237

Hello,

I wrote an AL Codeunit which runs report 9802 "Copy Permission Set" so that I can copy the system permission set as 30 user-defined permission sets.
It seems that this works but I have one problem. Every time the copy is successful, I get the pop-up message from the report program and I need to press "OK" 30 times.

Is there any way to suppress the message using the standard report program?

Please advise. Thank you.

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    Not clear what message you mean, but on this report (as standard) there's only a message in the OnPostReport trigger:

    trigger OnPostReport()

       begin

           Message(CopySuccessMsg, InputRoleID);

       end;

  • adams1124 Profile Picture
    237 on at

    Thank you, Stefano.

    Yes, that is the message I would like to suppress.

    I run the report in a condeunit like this:

         Report.Execute(Report::"Copy Permission Set", Parameters, RecordRef);

    As this report is run 30 times in a loop, I end up getting the completion message 30 times and wonder if I could disable the pop up message.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    If you're runnig the standard report, unfortunately you cannot disable it because there's no an event for doing so.

    You can recreate your own report (as copy of the standard one) without the message and execute this.

  • adams1124 Profile Picture
    237 on at

    Thank you again, Stefano.

    As permission related tables structure is complicated, I would like to use as much standard function as possible, but I understood that for this I need to copy the standard program.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 580 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 462 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 272 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans