Microsoft365R icon indicating copy to clipboard operation
Microsoft365R copied to clipboard

How to pull attachments for emails

Open p208134 opened this issue 1 year ago • 0 comments

I have looked at the code and I apologise as I am nowhere near your guys level - but I can't see an easy way to read/pull of emails based on either the system date or the subject name of the email or based on both factors.

For example, if I got an email yesterday and I wanted to pull it off as it always has the same name, I want to use sys.date(-1) and then something like subject_name="KPI Data" but I can't see this functionality despite being hinted.

Secondly, if I recieved a series of data i.e. today with SW KPI1 then another email with SW KPI2 and they both had an attachment, I can't see a way to state pull any attachments based on this date, for this email subjects into R and name it as the folder pulled in from.

I might be wrong but I feel like the functionality is there and I cannot see it?

p208134 avatar Nov 17 '22 16:11 p208134