Quicker way to open up folder item

  • Thread starter Thread starter Bryan Dickerson
  • Start date Start date
B

Bryan Dickerson

Is there a quick way to open up a public folder item if I just have a
UserProperty value? Or do I need to store something else to make successive
accesses of the item fast?

Thanx!

Bryan
 
The way to get an item is by using EntryID and StoreID with the
NameSpace.GetItemFromID method. If you store the Item.EntryID and
Item.Parent.StoreID you can get the item easily. If you open it as a global
or module level object it will be in scope for the duration of your code and
will always be around, that's the fastest way to have repeated accesses to
an object.
 
So if I know the EntryID and the Folder Name doesn't change, then I could
point to the folder directly and open item X and it should work?
 
The name of the folder has nothing to do with it. Using GetItemFromID is
used to open an item in code. It only references the item's EntryID and
optionally its StoreID. As long as the item isn't moved to a different
folder or deleted then the EntryID would remain the same and can be used to
retrieve an item.
 
Back
Top