Jump to content

Access and Outlook Public Folder interaction


johnwon
 Share

Recommended Posts

I am new to AutoIt and have only written a couple scripts so far. I need some direction for this one.

I have an access database that lists a lot of reports in it. There is a form to make use easy, but I also have access to the table where the data is stored too.

These reports are set up on one of our reporting servers and are scheduled to run automatically and a public folder is copied when the reports are emailed to the users. There are thousands of reports.

I need to write a script that will look up the name of the report in our access database, then go to Outlook and look up that name (the report name and subject are always the same). Once it looks up the name to ensure that it has the correct report, I need to get into the body of the email to capture the recipients and text in the body of the report. If it's a report with an excel attachment, I need to forward the report for my review. If there is no attachment, I need to copy the text in the body of the email and past it into a comments field in the access database.

Any suggestions on how to go about this is greatly appreciated.

Thank you,

John

Link to comment
Share on other sites

For the Outlook part there is an Outlook UDF available. For download please see my signature.

You can use _OL_ItemFind to populate an array with all required info about the found mails. So you could search for all mail items with subject of "Report xxx" and get recipident, body, attachments etc. for all found items.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

To access your database you could use the

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...