Question
1
Replies
73
Views
Ford Motor Company
Posted: March 30, 2019
Last activity: April 1, 2019
Closed
How to attach the latest file created in the directory to Microsoft outlook?
Hi All,
In my Project, at the end of all the process activity an excel file is generated in a specific folder. The name of the created file changes every time when I run the project.
I want to add this file as a mail attachment and send it across to the recipients. How to attach the latest file created in the folder directory?
Thanks in advance
***Edited by Moderator: Pallavi to update platform capability tags***
Get the latest file with date modified or created as mentioned in below link.
https://www.c-sharpcorner.com/blogs/how-to-get-the-latest-file-from-a-folder-by-using-c-sharp