|
-
Apr 15th, 2005, 12:33 PM
#1
Thread Starter
Fanatic Member
Public Folders EntryID
Is it possible to know the EntryID of a Public Folders for contacts in Exchange without using the PickFolder method?
-
Apr 15th, 2005, 12:56 PM
#2
Re: Public Folders EntryID
You can navigate down the folder structure to your destination public folder. Then get its .EntryID value.
This value does not ever change unless the folder is deleted and recreated.
Is the destination folder dynamic or will it be in the same location all the time?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 15th, 2005, 01:40 PM
#3
Re: Public Folders EntryID
Just in case, here is a demo to transversing the Public folders to a folder called "Development".
VB Code:
Option Explicit
'Add a reference to MS Outlook xx.0 Object Library
Private Sub Command1_Click()
Dim oApp As Outlook.Application
Dim oNS As Outlook.NameSpace
Dim oPublicFolders As Outlook.MAPIFolder
Dim oAllPublicFolders As Outlook.MAPIFolder
Dim oFolder As Outlook.MAPIFolder
Dim sEntryID As String
Set oApp = New Outlook.Application
Set oNS = oApp.GetNamespace("MAPI")
Set oPublicFolders = oNS.Folders("Public Folders")
Set oAllPublicFolders = oPublicFolders.Folders("All Public Folders")
Set oFolder = oAllPublicFolders.Folders("Development")
sEntryID = oFolder.EntryID
Debug.Print sEntryID
Set oFolder = Nothing
Set oAllPublicFolders = Nothing
Set oPublicFolders = Nothing
Set oNS = Nothing
Set oApp = Nothing
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 5th, 2005, 09:38 AM
#4
Thread Starter
Fanatic Member
Re: Public Folders EntryID
Is it normal that this code is working on Outlook 2002 with Windows XP and not on Outlook 2002 with Windows 2000?
-
Oct 5th, 2005, 10:23 AM
#5
Re: Public Folders EntryID
What error are you getting?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 5th, 2005, 12:30 PM
#6
Thread Starter
Fanatic Member
Re: Public Folders EntryID
The operation failed. An object could not be found.
The error occurs on this line :
VB Code:
Set oPublicFolders = oNS.Folders("Public Folders")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|