Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

Sales Report selection. Email body report is sent to printer.

Posted on by 2,983

In Sales Report selections for invoice, we have standard report 206(rdl) and 1306 (Word). Report1306 is marked for email body. So when we send invoice by email, report 206 is attached as pdf and 1306 is the email Body.

The problem is that when a user prints an invoice, both reports are sent to the printer. Is there any way we can avoid this, and still keep both reports for sending by email? Basicallly, why does system print a report that is marked as email body?

  • J Goudriaan Profile Picture
    J Goudriaan on at
    RE: Sales Report selection. Email body report is sent to printer.

    Thanks for sharing your solution to this issue, Ghetz!

    I implemented in BC21 and it works.

  • Verified answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Sales Report selection. Email body report is sent to printer.

    Thank you for sharing. This is really helpful for others.

  • Ghetz Profile Picture
    Ghetz 2,983 on at
    RE: Sales Report selection. Email body report is sent to printer.

    We finally came with a small customization to avoid printing "Email Body" Reports

    Let me share it here:

        [EventSubscriber(ObjectType::Table, Database::"Report Selections", 'OnPrintDocumentsOnAfterSelectTempReportSelectionsToPrint', '', false, false)]
        local procedure OnPrintDocumentsOnAfterSelectTempReportSelectionsToPrint(RecordVariant: Variant; var TempReportSelections: Record "Report Selections" temporary; var TempNameValueBuffer: Record "Name/Value Buffer" temporary; var WithCheck: Boolean; ReportUsage: Integer; TableNo: Integer)
        var

        begin
            TempReportSelections.SetRange("Use for Email Body", false);
        end;

  • Suggested answer
    MahGah Profile Picture
    MahGah 15,419 on at
    RE: Sales Report selection. Email body report is sent to printer.

    Great. I voted for this idea.

  • Ghetz Profile Picture
    Ghetz 2,983 on at
    RE: Sales Report selection. Email body report is sent to printer.

    Added a comment to this one that already has votes. Please vote

    experience.dynamics.com/.../

  • Suggested answer
    MahGah Profile Picture
    MahGah 15,419 on at
    RE: Sales Report selection. Email body report is sent to printer.

    Hi

    I agree with you. For the exact reason we have decided to use 3rd party app for all emailing. 

    You can submit your idea here and then share the link. Then we can vote. 

    experience.dynamics.com/.../

  • Ghetz Profile Picture
    Ghetz 2,983 on at
    RE: Sales Report selection. Email body report is sent to printer.

    We don't use layouts by customer, as it's the same for all. IMO we should be able to set this globally, instead of customer by customer, that's actually my point.

    Users don't send invoices directly to the printer; they generate the report to PDF or print it after getting the request page. It's unacceptable to have 2 request pages, as many times they will just hit print and get both layouts printed. It's a big department.

    I just don't get this design, what sense does it make to print an email body, this should be addressed IMO. Enable a global "printed report" or take the email configration out of the report selections.

  • Suggested answer
    MahGah Profile Picture
    MahGah 15,419 on at
    RE: Sales Report selection. Email body report is sent to printer.

    Hi

    The challenge is BC combined 2 Print/Email together. Basically when you select the report in setup page it means I want to print this report. Then by marking as Email body you define how email works.

    Kim provided one solution here.

    Also, what setup you have in Printer Selection? I mean have you setup both report to print for user? or you see PDF file then print? if you setup both report to print then remove 1306 and try. User may see message to print the PDF that can ignore. This is only helpful if you have minor print of those reports.

  • Suggested answer
    Dallefeld Profile Picture
    Dallefeld 11,423 User Group Leader on at
    RE: Sales Report selection. Email body report is sent to printer.

    Do you have document layouts defined for your customers that sets the printed report and email report numbers along with the email address?

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans