Invoke code for VBA code

has anybody worked/written microsoft code to download attachments from emails for exchanged web services that connects with outlook
The attachments can be .pdf or .msg (for outlook emails)

I need to get the date from pdf ( using regex that cover all kind of date formats)

The requirement is to get the date from all the attachments(attachments can be email that has pdf or directly attached to email)

work with Exchange Mail Activities:

You can get mails and attachments with activity Get Eaxchange Mail Message:

Then iterate each mail in for each loop.

I am searching for VBA code/ code pulled using u=invoke code activity covers all kind of attachments like attachments and attachments inside attachment (recursion needed for this )

for some idea to get from imap or pop3 , the reference links are here