![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() I'm use to doing this via VB and CDO but I can't seem to find a simple way in VBScript from a form itself. I have a EntryID for an Item and wish to find the corresponding Item. I have setup my collection down to the item level and can use a loop to find and setup the item but it's slow. On the VB side you can use the GetMessage(ID,ParentFolderSessionID) command from the Connection to go directly to an Item. Is there an equivalent in the Form design mode using VBScript? When I use the Folder.Find() command it tells me that the EntryID is not Valid Along with just ID like I can use via CDO. Is it possibly labeled something different? Any help would be appreciated. *** Sent via Developersdex http://www.developersdex.com *** |
Ads |
#2
|
|||
|
|||
![]()
Why not use the Namespace.GetItemFromID method?
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Andrew Sampels" wrote in message ... I'm use to doing this via VB and CDO but I can't seem to find a simple way in VBScript from a form itself. I have a EntryID for an Item and wish to find the corresponding Item. I have setup my collection down to the item level and can use a loop to find and setup the item but it's slow. On the VB side you can use the GetMessage(ID,ParentFolderSessionID) command from the Connection to go directly to an Item. Is there an equivalent in the Form design mode using VBScript? When I use the Folder.Find() command it tells me that the EntryID is not Valid Along with just ID like I can use via CDO. Is it possibly labeled something different? Any help would be appreciated. *** Sent via Developersdex http://www.developersdex.com *** |
#3
|
|||
|
|||
![]() Sorry, I'm new and trying to learn the methods. I will research it. Do you mind giving me a quick example or code snipit? Thanks Sue *** Sent via Developersdex http://www.developersdex.com *** |
#4
|
|||
|
|||
![]()
In article , Andrew Sampels
wrote: Sorry, I'm new and trying to learn the methods. I will research it. Do you mind giving me a quick example or code snipit? Thanks Sue The first thing you should research is Sue's site -- http://www.outlookcode.com/jumpstart.aspx The second thing to look at is www.Slipstick.com ; lots of examples there also. Then you might look at http://www.outlookbythesound.com/SBS...et_outlook.htm . Each of those blossoms in the hands of Devi have a URL to an Outlook or other important resource. The one by the left ear, your left, not Devi's, will point you to the list of known MVP websites. You can get lost once you get there. -- Hollis Paul Mukilteo, WA USA |
#5
|
|||
|
|||
![]() 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) *** Sent via Developersdex http://www.developersdex.com *** |
#6
|
|||
|
|||
![]()
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) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I stop Outlook from trying to find an Exchange Server | cheyenne | Outlook - Installation | 4 | June 14th 06 08:37 AM |
Beta 2 Outlook can't find exchange server | Silver Surfer | Outlook - Installation | 6 | June 1st 06 08:59 AM |
Accessing email in an Exchange 5.5 mailbox via VBScript? | [email protected] | Outlook and VBA | 1 | May 24th 06 11:43 PM |
How to find out which is the current item shown in the inspector? | Michael Reukauff | Add-ins for Outlook | 1 | January 25th 06 03:33 PM |
How to find Appointment Item by EntryID? | deko | Outlook and VBA | 2 | January 23rd 06 08:15 PM |