Jump to content

MS Outlook 2007 Mapi object variables resource?


Recommended Posts

I've searched the forums a lot and have been on MSDN for the past hour and I am absolutely horrible at navigating it.

$objOutlook = ObjCreate("Outlook.Application")
$objNameSpace = $objOutlook.GetNamespace("MAPI")
$objFolder = $objNamespace.GetDefaultFolder(6)
$numItems = $objFolder.Items.Count
$objMessage = $objFolder.Items(1)
$Subject = $objMessage.Subject()
$Body = $objMessage.Body()

I'm not even sure what they are called, but does anyone know where I can find the list of the items like the .Items, .Subject, and .GetDefaultFolder and such? This would be of great help and would be extremely appreciated. Thank you in advance!

Link to comment
Share on other sites

Here you can find the Outlook.udf. Maybe it already offers the functions you are looking for or you could have a look at the code to see how it's done.

Or maybe OutlookSpy could be the tool you're looking for:

OutlookSpy is the ultimate Outlook developer tool. Integrated directly into Outlook, it provides fast and convenient access to all Outlook Object Model objects, lets you examine values of the properties, call functions, browse object hierarchy and monitor Outlook events.

Edited by water

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...