How to download the PDF files alone and save into the local folder?

If my outlook mail message have a no. of files in my inbox with different sender myself only downloaded a PDF files only and move into the local folder.

can any help me…

1 Like

Hi
this was really good to solve this issue

Kindly try and let know buddy
Cheers @keerthi_97

1 Like

Hi @keerthi_97

You can use this in filter property “(.pdf)”

Thanks,
Prankur

4 Likes

Eventually you can filter downloaded files with powershell to remove anything other that PDF :slight_smile:

Get-ChildItem -Path C:\attachments -Recurse -File | ? {$_.Extension -notlike ".pdf"} | Remove-Item -Force
2 Likes

in for each use that mailmessages
in that use if condition in which u can set condition whatever u want for ex if u want mails pdffrom particular user only then use
mailmsg.from(“abc.pqr.com”)
in then cond use save attachment

1 Like

@Pablito @PrankurJoshi @ImPratham45 @Palaniyappan @keerthi_97

how get the attachments(pdf) from attached email(.msg) in the email , so email - email - pdf
also pdf attachments from email ?
and then I need to apply regex to get the list of all the dates , get the latest date save it in a variable .

how get the attachments(pdf) from attched email(.msg) in the email , so email - email - pdf
also pdf attachemtns from email ?
and then I need to apply regex to get the list of all the dates , get the latest date save it in a variable .
I have seen all the posts around it :

and many links are here as well
How to save perticular file from outlook, when the attachments contains multiple files