OutlookEX UDF - Folder Item: Difference between revisions

From AutoIt Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:OutlookEX_UDF]]
[[Category:UDF]]
Here you find detailed information about how to work with Folder items.  
Here you find detailed information about how to work with Folder items.  


Line 9: Line 9:
|-
|-
| Mailbox address || John.Doe@company.com
| Mailbox address || John.Doe@company.com
|-
| Inbox-Subfolder || Archive
|-
|-
| Shared folder || shared@company.com
| Shared folder || shared@company.com
|-
|-
| Inbox-Subfolder || Archive
| PST || Archive
|}
|}
This is how you would access your mailbox:
This is how you would access your mailbox:
Line 44: Line 42:
|-
|-
| Global $aFolder = _OL_FolderAccess($oOutlook, "\\John Doe\", $olFolderContacts) || Contacts
| Global $aFolder = _OL_FolderAccess($oOutlook, "\\John Doe\", $olFolderContacts) || Contacts
|}
This is how you would access your PST:
{| class="wikitable"
|-
| Global $aFolder = _OL_FolderAccess($oOutlook, "Archive - John Doe") || Inbox
|-
| Global $aFolder = _OL_FolderAccess($oOutlook, "Archive - John Doe\Details") || Inbox, Subfolder "Details"
|}
|}



Latest revision as of 19:49, 3 October 2016

Here you find detailed information about how to work with Folder items.

Access folder

Lets assume you are logged in as user "John Doe" with the following information:

Recipient John Doe
Mailbox address John.Doe@company.com
Shared folder shared@company.com
PST Archive

This is how you would access your mailbox:

Global $aFolder = _OL_FolderAccess($oOutlook, "John.Doe@company.com") Inbox
Global $aFolder = _OL_FolderAccess($oOutlook, "*") Inbox
Global $aFolder = _OL_FolderAccess($oOutlook, "", $olFolderInbox) Inbox
Global $aFolder = _OL_FolderAccess($oOutlook, "\\John Doe", $olFolderInbox) Inbox
Global $aFolder = _OL_FolderAccess($oOutlook, "\\John Doe\Archive", $olFolderInbox) Inbox, Subfolder "Archive"
Global $aFolder = _OL_FolderAccess($oOutlook, "John.Doe@company.com\Archive") Inbox, Subfolder "Archive"

This is how you would access your contacts:

Global $aFolder = _OL_FolderAccess($oOutlook, "John.Doe@company.com\Contacts") Contacts
Global $aFolder = _OL_FolderAccess($oOutlook, "*\Contacts") Contacts
Global $aFolder = _OL_FolderAccess($oOutlook, "", $olFolderContacts) Contacts
Global $aFolder = _OL_FolderAccess($oOutlook, "\\John Doe\Contacts", $olFolderContacts) Contacts
Global $aFolder = _OL_FolderAccess($oOutlook, "\\John Doe\", $olFolderContacts) Contacts

This is how you would access your PST:

Global $aFolder = _OL_FolderAccess($oOutlook, "Archive - John Doe") Inbox
Global $aFolder = _OL_FolderAccess($oOutlook, "Archive - John Doe\Details") Inbox, Subfolder "Details"

This is how you would access the shared folder:

Global $aFolder = _OL_FolderAccess($oOutlook, "shared@company.com") Inbox
Global $aFolder = _OL_FolderAccess($oOutlook, "shared@company.com\Archive") Inbox, Subfolder "Archive"

This is how you would access the public folder:

Global $aFolder = _OL_FolderAccess($oOutlook, "Public Folders - John.Doe@company.com") Inbox
Global $aFolder = _OL_FolderAccess($oOutlook, "Public Folders - John.Doe@company.com\Archive") Inbox, Subfolder "Archive"