Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

how to delete the save pdf automatically

(0) ShareShare
ReportReport
Posted on by 1,865

Dear All,

Is there any way, after sending the mail with attachment..pdf would automatically dispose.

7624.UU.png

regards,

manish

 

*This post is locked for comments

  • manish.yadav Profile Picture
    manish.yadav 1,865 on at
    RE: how to delete the save pdf automatically

    very thanx to all.

    both are working.

         // FileManagement.DeleteClientFile('MKUOrderSheetDetails');  ///for pdf deletion

         // ERASE('C:\Temp\MKUOrderSheetDetails');

    You all are the great person in the world.

    manish

  • Verified answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: how to delete the save pdf automatically

    Manish,

    you can write bellow sending mail.

    FileManagement.DeleteClientFile(FileName); // pass the attachment filename here

    //FileManagement is a variable of codeunit of 419.

  • Verified answer
    Andrea Antoniazzi Profile Picture
    Andrea Antoniazzi 285 on at
    RE: how to delete the save pdf automatically

    Hi,

    if you have a custom function for send the email, you could add the erase function for delete del pdf file

    Example:

    ERASE('C:\TestFolder\NewTestFile.pdf');

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 60,161 Super User 2025 Season 1 on at
    RE: how to delete the save pdf automatically

    Please check codeunit 419. you may find some function

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,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans