Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Automate send email of report generated as excel attachment in Business Central

(0) ShareShare
ReportReport
Posted on by 55

Hi,

Can anyone know how to send generated report via email as an excel attachment from Business Central. We need similar solution as we subscribe SSRS reports in SQL reporting Services.

Please let me know if this can be done in BC if yes how, if there is any sample code will be helpful.

Thanks,

Amit Bansal.

  • Verified answer
    keoma Profile Picture
    32,725 on at
    RE: Automate send email of report generated as excel attachment in Business Central

    create a codeunit for that, follow www.mynavblog.com/.../.

    then create a new job queue entry, add that new codeunit, set the recurrancy.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Automate send email of report generated as excel attachment in Business Central

    I have 2 solutions for you:

    first:

    check the following link:

    https://docs.microsoft.com/en-us/dynamics365/business-central/ui-how-send-documents-email

    just need to customize and add excel type.

    second:

    create a process report and do the following steps:

    1. filter the data

    2. call the main report and save it as Excel file on disk

    3. create an SMTP instance, set the emails, the body of the mail, and add the attachment from step 2. then send the email.

    then create a job queue entry and run this report

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Automate send email of report generated as excel attachment in Business Central

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

    Thanks.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans