{"id":961,"date":"2011-12-28T22:13:04","date_gmt":"2011-12-28T16:43:04","guid":{"rendered":"http:\/\/www.automationrepository.com\/?p=961"},"modified":"2011-12-28T22:14:25","modified_gmt":"2011-12-28T16:44:25","slug":"automating-outlook-using-qtp-overview-of-outlook-object-model","status":"publish","type":"post","link":"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/automating-outlook-using-qtp-overview-of-outlook-object-model\/","title":{"rendered":"Part 2: Automating Outlook using QTP | Overview of Outlook Object Model"},"content":{"rendered":"<div style=\"text-align: justify; font-family: Verdana;\">\n<p>In the previous article (<a title=\"Part 1: Automating Outlook using QTP | General Introduction\" href=\"http:\/\/www.automationrepository.com\/2011\/12\/part-1-automating-outlook-using-qtp-general-introduction\/\" target=\"_blank\">Part 1: Automating Outlook using QTP | General Introduction<\/a>), we read about the General Introduction about Automating Outlook using QTP. Before proceeding any further with automating different functionalities in MS Outlook, it would be a good idea to have basic understanding of some of the important objects in Outlook Object Model.<!--more--> This article provides a brief overview of some of these main objects.<br \/>\n<span><br \/>\n<\/span><\/p>\n<h4>Application object<\/h4>\n<p>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 &#8211;<\/p>\n<ul>\n<li>:: It allows access to other objects in the Outlook hierarchy.<\/li>\n<li>:: Its&#8217; CreateItem method allows you to create new items such as email messages, tasks, appointments etc.<\/li>\n<li>:: It allows access to the active interface objects, Explorer &amp; 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.<\/li>\n<\/ul>\n<p><span><br \/>\n<\/span><\/p>\n<h4>Explorer object<\/h4>\n<p>The Explorer object represents a window that displays the contents of a folder containing items such as email messages, tasks, appointments etc.<br \/>\n<span><br \/>\n<\/span><\/p>\n<h4>Inspector object<\/h4>\n<p>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.<br \/>\n<span><br \/>\n<\/span><\/p>\n<h4>MAPIFolder object<\/h4>\n<p>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. <strong>Similarly olFolderOutbox, olFolderSentMail, olFolderDeletedItems represent Outbox, Sent Mail &amp; Deleted Items folders respectively.<\/strong><br \/>\n<span><br \/>\n<\/span><\/p>\n<h4>MailItem object<\/h4>\n<p>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 &amp; methods that can be used to create and send emails.<br \/>\n<span><br \/>\n<\/span><\/p>\n<h4>AppointmentItem object<\/h4>\n<p>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 &amp; methods that specify meeting details such as the location and time &amp; also perform actions such as responding to or forwarding meeting requests etc.<br \/>\n<span><br \/>\n<\/span><\/p>\n<h4>ContactItem object<\/h4>\n<p>The ContactItem object represents a contact in the Contacts folder. ContactItem objects includes various properties that can contain person&#8217;s name, address, phone numbers and various other properties.<\/p>\n<p><span><br \/>\n<\/span><\/p>\n<\/div>\n<div style=\"font-family: Verdana,sans-serif; border: 1px solid #C8B560; padding: 3mm; background: #FFF8C6; text-align: center;\">\n<p>If you liked this article, you can join our blog to get free email updates directly in your inbox.<\/p>\n<form style=\"text-align: center;\" action=\"http:\/\/feedburner.google.com\/fb\/a\/mailverify\" method=\"post\" onsubmit=\"window.open('http:\/\/feedburner.google.com\/fb\/a\/mailverify?uri=automationrepository\/feeds', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true\" target=\"popupwindow\"><input style=\"width: 160px; height: 20px;\" onfocus=\"if (this.value == 'Enter Your Email Address') {this.value = '';}\" onblur=\"if (this.value == '') {this.value = 'Enter Your Email Address';}\" type=\"text\" value=\"Enter Your Email Address\" \/> <input type=\"hidden\" name=\"uri\" value=\"automationrepository\/feeds\" \/> <input type=\"hidden\" name=\"loc\" value=\"en_US\" \/> <input type=\"submit\" value=\"Join Us\" \/><\/p>\n<p style=\"text-align: justify;\">\n<\/form>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In the previous article (Part 1: Automating Outlook using QTP | General Introduction), we read about the General Introduction about Automating Outlook using QTP. Before proceeding any further with automating different functionalities in MS Outlook, it would be a good idea to have basic understanding of some of the important objects in Outlook Object Model.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,9],"tags":[54],"class_list":["post-961","post","type-post","status-publish","format-standard","hentry","category-advanced-concepts","category-qtp-concepts","tag-automating-outlook-using-qtp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Part 2: Automating Outlook | Overview of Outlook Object Model<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/automating-outlook-using-qtp-overview-of-outlook-object-model\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anish Pillai\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/automating-outlook-using-qtp-overview-of-outlook-object-model\/\",\"url\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/automating-outlook-using-qtp-overview-of-outlook-object-model\/\",\"name\":\"Part 2: Automating Outlook | Overview of Outlook Object Model\",\"isPartOf\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#website\"},\"datePublished\":\"2011-12-28T16:43:04+00:00\",\"dateModified\":\"2011-12-28T16:44:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/7a35710e1ce89e5fb481be88fcd6cd20\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/automating-outlook-using-qtp-overview-of-outlook-object-model\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/automating-outlook-using-qtp-overview-of-outlook-object-model\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/automating-outlook-using-qtp-overview-of-outlook-object-model\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.automationrepository.com\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Part 2: Automating Outlook using QTP | Overview of Outlook Object Model\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#website\",\"url\":\"https:\/\/www.automationrepository.com\/wordpress\/\",\"name\":\"XX\",\"description\":\"\\r\\nasas\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.automationrepository.com\/wordpress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/7a35710e1ce89e5fb481be88fcd6cd20\",\"name\":\"Anish Pillai\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8aa984de2295c3c4078fa48f6ba5d91e7c849b1a27a11dca24c6f11dd673ba14?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8aa984de2295c3c4078fa48f6ba5d91e7c849b1a27a11dca24c6f11dd673ba14?s=96&d=mm&r=g\",\"caption\":\"Anish Pillai\"},\"description\":\"Find more about Anish Pillai on Google+\",\"sameAs\":[\"http:\/\/www.automationrepository.com\"],\"url\":\"https:\/\/www.automationrepository.com\/wordpress\/author\/anish\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Part 2: Automating Outlook | Overview of Outlook Object Model","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/automating-outlook-using-qtp-overview-of-outlook-object-model\/","twitter_misc":{"Written by":"Anish Pillai","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/automating-outlook-using-qtp-overview-of-outlook-object-model\/","url":"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/automating-outlook-using-qtp-overview-of-outlook-object-model\/","name":"Part 2: Automating Outlook | Overview of Outlook Object Model","isPartOf":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/#website"},"datePublished":"2011-12-28T16:43:04+00:00","dateModified":"2011-12-28T16:44:25+00:00","author":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/7a35710e1ce89e5fb481be88fcd6cd20"},"breadcrumb":{"@id":"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/automating-outlook-using-qtp-overview-of-outlook-object-model\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/automating-outlook-using-qtp-overview-of-outlook-object-model\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.automationrepository.com\/wordpress\/2011\/12\/automating-outlook-using-qtp-overview-of-outlook-object-model\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.automationrepository.com\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Part 2: Automating Outlook using QTP | Overview of Outlook Object Model"}]},{"@type":"WebSite","@id":"https:\/\/www.automationrepository.com\/wordpress\/#website","url":"https:\/\/www.automationrepository.com\/wordpress\/","name":"XX","description":"\r\nasas","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.automationrepository.com\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/7a35710e1ce89e5fb481be88fcd6cd20","name":"Anish Pillai","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.automationrepository.com\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8aa984de2295c3c4078fa48f6ba5d91e7c849b1a27a11dca24c6f11dd673ba14?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8aa984de2295c3c4078fa48f6ba5d91e7c849b1a27a11dca24c6f11dd673ba14?s=96&d=mm&r=g","caption":"Anish Pillai"},"description":"Find more about Anish Pillai on Google+","sameAs":["http:\/\/www.automationrepository.com"],"url":"https:\/\/www.automationrepository.com\/wordpress\/author\/anish\/"}]}},"_links":{"self":[{"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts\/961","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/comments?post=961"}],"version-history":[{"count":15,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts\/961\/revisions"}],"predecessor-version":[{"id":975,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/posts\/961\/revisions\/975"}],"wp:attachment":[{"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/media?parent=961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/categories?post=961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.automationrepository.com\/wordpress\/wp-json\/wp\/v2\/tags?post=961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}