web
You’re offline. This is a read only version of the page.
close
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

Attaching Excel generated through Excel Buffer to Email on Business Central OnCloud

(0) ShareShare
ReportReport
Posted on by 85

Can someone please guide or provide some solution for Sending Excel generated through Excel Buffer and attaching it to Email using New Email Functionality. For eg. in Analysis View there is an action to Export the data through Excel that uses Excel Buffer for generating Excel. So, I want to send that Excel generated through Excel Buffer through Email and that to with New Email functionality.

I got stuck at the function SaveToStream in Excel Buffer. It doesn't seem to work for OnCloud versions.

Any help is really appreciated.

I have the same question (0)
  • JAngle Profile Picture
    133 on at

    This might help: https://youtu.be/7oXVwPiU1mg

  • Chanky Profile Picture
    85 on at

    New Email Functionality is Ok but attaching Excel Report generated through Excel Buffer is the issue. I am not getting way out for it. How can I attach this Excel Report generated through Excel Buffer directly to the Email (on OnCloud)?

  • Suggested answer
    Rbansode Profile Picture
    5 on at

    Hi, you can use Instream and OutStream objects along with the "TempBlob" codeunit to achieve this.

    This is a good place to start www.kauffmann.nl/.../

  • Chanky Profile Picture
    85 on at

    Actually there was a bug in Microsoft Code in the Codeunit "Export Analysis View" in the Event "OnAfterExportData" as the first parameter wasn't passed with reference (through var). So they updated this Code in version 18.5 and this error got resolved as then system started storing the reference of the Path of the Exported File.

  • Verified answer
    Marco Mels Profile Picture
    on at

    Thank you for sharing this outcome. Great to see it has been resolved.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans