Forum Discussion

FLX's avatar
FLX
Level 4
8 years ago

How to filter Shortcuts in Outlook / Searchfolder Creation

Hey out there! I'm litte bit confused that I did not find any topics regarding to that issue. But how is it possible, e.g. to filter within at least the outlook advanced filter function for ev short...
  • ChrisLangevin's avatar
    8 years ago

    Gertjan is right, you want to key your filters on the MessageClass attribute of the items. This is found under the "All mail fields" section when you're choosing fields. Here are some sample criteria for EV-related search folders.

    Just shortcuts:
    MessageClass        is (exactly)        IPM.Note.EnterpriseVault.Shortcut

    All EV items (shortcuts, pending, restoring, etc.):
    MessageClass        contains        EnterpriseVault

    See attached screenshots for examples setting up Search Folders.

     

  • ChrisLangevin's avatar
    8 years ago

    ...and you got me thinking about doing this with EWS for a large number of mailboxes. The following PowerShell script ought to do the trick.

    --Chris

     

    Edit: Script changed to attachment because some parts of it kept getting changed to smileys when posted.