none
Outlook folder List RRS feed

  • Question

  • Hello,

    How can I produce a list of all of the outlook folders and the PR_ATTR_Hidden.

    Using the code below I can get the folder names , but not the Hidden Status

    Set xSession = CreateObject("Redemption.RDOSession")
    xSession.Logon
    Set IPMRoot = xSession.Stores.DefaultStore.IPMRootFolder
    For Each Folder In IPMRoot.Folders
      Debug.Print (Folder.Name)
    Next

    Friday, March 24, 2017 2:00 PM

All replies

  • I haven't tested this but you should be able to use the fields property with the correct DASL for the PR_ATTR_Hidden attribute.

    Try...

    Debug.Print (Folder.Fields("http://schemas.microsoft.com/mapi/proptag/0x10F4000B")

    Friday, March 24, 2017 3:19 PM