iMA=0 with outlook.GetNamespace("MAPI") for ia=1 to .Folders.Count if "RUBINOV"$upper(.Folders(ia).Name) iMA=ia EXIT endif endfor endwith if iMA#0 with outlook.GetNamespace("MAPI").Folders(iMA) .....>I am trying to create a synchronization program that will work with both Outlook personal folders and exchange folders. Working with personal folders is no problem using getdefaultfolder() method, but I can't find a folder that relates to my exchange folders. I can use the pickfolder() method to find the folder I want, which will give me an ID, but I want something that could be more easily transferred to other servers (which would likely have other ID's for the same folders). Here's the code I'm using so far:
>l_outapp = CREATEOBJECT("Outlook.Application") >l_outns = l_outapp.GetNamespace("MAPI") > >* following opens the default contacts folder in personal folders >lt = l_outns.GetDefaultFolder(10) >>