Sunday, 23 January 2011

Part 2: Overview Outlook Object Model
In (Part 1: Introduction ) article, it would be a good idea to have basic understanding of some of the important objects in Outlook Object Model. 
In this article provides a brief overview of some of these main objects.

Application object

The Application object is the topmost object in the Outlook Object Model and thus it represents the entire Outlook application. As this is the root object, you would need to create an instance of this object to access the Outlook Object Model.
Some important purposes of Application object are -
·   :: It allows access to other objects in the Outlook hierarchy.
·   :: Its’ Create Item method allows you to create new items such as email messages, tasks, appointments etc.
·   :: It allows access to the active interface objects, Explorer & Inspector, using which you can access the windows that display the contents of a folder (emails, appointments etc) or the windows that display a single item (single email, appointment etc) respectively.

Explorer object

The Explorer object represents a window that displays the contents of a folder containing items such as email messages, tasks, appointments etc.

Inspector object

Contrary to Explorer object, the Inspector object represents a window that displays a single item such as an email message, an appointment or a task.

MAPIFolder object

The MAPIFolder object represents a folder that contains email messages, tasks, contacts and various other items. MS Outlook provides a total of 16 default MAPIFolder objects. Example, olFolderInbox represents the Inbox folder. Similarly olFolderOutbox, olFolderSentMail, olFolderDeletedItems represent Outbox, Sent Mail & Deleted Items folders respectively.

MailItem object

As the name suggests, MailItem object represents an email message. MailItem objects are usually in folders, such as Inbox, Outbox, Sent Items etc. MailItem object provides various properties & methods that can be used to create and send emails.

AppointmentItem object

The AppointmentItem object represents a meeting, a one-time appointment, a recurring appointment or meeting in the Calendar folder. The AppointmentItem object includes various properties & methods that specify meeting details such as the location and time & also perform actions such as responding to or forwarding meeting requests etc.

ContactItem object

The ContactItem object represents a contact in the Contacts folder. ContactItem objects includes various properties that can contain person’s name, address, phone numbers and various other properties.

How to run the .vbs file for Outlook Operations:
Navigation: 1. Open the Notepad on the Desktop (or any location)
2. Write the vb script code in that file
3. Select Save as type All and give the File name and extension name
    Ex: Outlook.vbs
4. File à Save and File à Exit in Notpad.
5. Double Click on the that .vbs file.


Post a Comment

TrainingHUB. Powered by Blogger.

Total Pageviews


QTP Training in hyderabad

Sql Tutorial

Popular Posts

Our Facebook Page