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

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?

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    113 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

Responsible AI policies

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

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,899 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,444

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,304

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans