View Single Post
  #6  
Old August 8th 06, 09:54 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to Find a Item using VBScript in Outlook/Exchange

By "public root ID," do you mean the StoreID for the Public Folders
hierarchy? You can get that programmatically by walking the folder hierarchy
from Application.Session.Folders down into the Public Folders hierarchy and
getting the StoreID from the first folder under Public Folders\All Folders.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"Andrew Sampels" wrote:
This is where I am on this. I have it working but had to find my public
root ID using VB and then set it up as a string. Is there a way to find
it using the VBScript? Here is my code snipit.

Set objNameSpace = Application.GetNameSpace("MAPI")

test =
"0000000038A1BB1005E5101AA1BB08002B2A56C20000454D5 34D44422E444C4C0000000
0000000001C830210AA6611CD9BC800AA002FC45A060000004 9495300D83521F38B00000
001000000140000006B0000002F6F3D4669727374204F72676 16E697A6174696F6E2F6F7
53D46697273742041646D696E6973747261746976652047726 F75702F636E3D436F6E666
96775726174696F6E2F636E3D536572766572732F636E3D494 953006900690073002E004
6004D0043004F002E006C006F00630061006C0000000000"

^ My Public Root ID ^

Set Message = objNameSpace.GetItemFromID( ItemID,Test)


Ads