store and retrieve a value in ms outlook which is not visible

  • Thread starter Thread starter Ken Slovak - [MVP - Outlook]
  • Start date Start date
K

Ken Slovak - [MVP - Outlook]

Using the Outlook object model you can only add a UserProperty to an item.
That is a problem since the item would be available to the user. I usually
use CDO 1.21 (optional installation in Outlook 2000 and later) code in
situations like that to add a hidden item
(MAPI.Folder.HiddenMessages.Message) in the Inbox folder to hold ny
settings. That is completely invisible to the user.

Other than that why not just store the information in the registry and read
and write it as needed?
 
Hello Friends,
I have a problem in visual basic 6.0.
My problem is ...
I have a KeyValue and UserName which i want to store in ms outlook, but
that KeyValue and UserName will not visible for user.
And also i want to retrieve that KeyValue and UserName that means i can
check which user is working now.
Is any property in MS OUTLOOK to do this?

anybody can help me
 
Wouldn't you be able to use the native Application.Session.CurrentUser property to get the username? Also, is the KeyValue that your storing belong to a particular item or are you assigning a constant for the session? If it is a user-defined value that you're adding to an item, you can put it on an item and then delete the control that holds the item from your form and the property will still be there. You can select not to display the "All Fields" tab of the item if you want to keep it a secret.

John
 
Depending on whether the user is on Exchange server or not and has entered
data for themselves in Windows you may or may not get anything useful out of
CurrentUser, or any of the scripting methods of getting a user network name.
Also, CurrentUser is restricted in secure versions of Outlook unless you use
Redemption or Extended MAPI or use a hack with Exchange mailboxes to parse
out the user name from the mailbox name shown in the TopOfStore folder
(Outlook Today).




John Riddle said:
Wouldn't you be able to use the native Application.Session.CurrentUser
property to get the username? Also, is the KeyValue that your storing belong
to a particular item or are you assigning a constant for the session? If it
is a user-defined value that you're adding to an item, you can put it on an
item and then delete the control that holds the item from your form and the
property will still be there. You can select not to display the "All Fields"
tab of the item if you want to keep it a secret.
 
Back
Top