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...
Suggested answer

How to automatically delete the attached documents when an email is sent.

(0) ShareShare
ReportReport
Posted on by 2,057

Hi All,

To reserve and reduce the space in Business Central. We want to delete all the files present in the Attached Documents section and would like this to happen automatically when an email sends.

For example, if there are 3 files attached with a record and when we send an email attaching multiple files, we want to delete those 3 attachments from the Business Central when the email is sent.

Can anyone please help us how we can achieve it?

  • Suggested answer
    JAngle Profile Picture
    95 on at
    RE: How to automatically delete the attached documents when an email is sent.

    Email Message Attachment (8904) Is where the data is stored. Quickest option would be to have a processing only report do DELETEALL for that table. You can add it on the job queue to run every night. Day time you might actually want users to validate an attachment was sent for emails sent on that day.

    from what I can see there aren’t any obvious events for when an attachment hits this table: github.com/.../src

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: How to automatically delete the attached documents when an email is sent.

    Hello,

    Interested to hear about possible extension that can help you to achieve this as this does not seem to be available in standard.

    If there is no further response from community, then you may want to consider raising this as a suggestion via https://aka.ms/bcideas .

    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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans