Redemption.SafeCurrentUser in offline mode?

  • Thread starter Thread starter SeeMing
  • Start date Start date
S

SeeMing

Hi,

Refer to the following code...

Set oCurrUser = New Redemption.SafeCurrentUser
sName = oCurrUser.Name ' works online and offline
sAccount = oCurrUser.Fields(CdoPR_ACCOUNT) ' works online only
sCountry = oCurrUser.Fields(PR_CTRYCODE) ' works online only
oCurrUser.CleanUp

In Outlook offline mode, sName always returns current user, but the
sAccount and sCountry are always empty, why? Is there another offline
approach to get current user Account and Country? Many thanks.

See-Ming
 
You are pretty much limited to what Outlook thinks is worth downloading when
offline.
See what else is exposed - in OutlookSpy, click IMAPISession, then
QueryIdentity. Do you see any other properties you can use instead?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Thanks Dmitry, I found a work around which is to use
Redemption.AddressList to retrieve values from Offline GAL.

SeeMing
 
Back
Top