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 1,967

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
    JAngle 63 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
    Marco Mels 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February 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... 292,575 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans