Outlook Object Extra Information

A

Anthony Yio

Hello,

I am not sure if my question make sense to you all, if there are better
approaches than this.
How do I write extra information into MAPIFolder objects, outlook items like
Task Item, Notes item, Contact Item and etc ,which eventually will be saved
into the *.PST file. I need to somehow place in a ID for each of these
items.

I found this MAPIFolder - Description property in the Outlook Reference but
I found that this description property could be changed by the user in the
Outlook itself which is unacceptable in my case. I need the property to be
inaccessible from the user but accessible throught the VBA. Also, the
description property is only for MAPIFolder object, I need to place into
outlook items as well.

Any suggestions?

thank you
 
A

Anthony Yio

OK, I found that Outlook allows adding in CComPtr< Outlook::UserProperty>
which can be used in my case. But another problem arouse, user can edit the
content of user defined property which in my case I don't want it to be
editable by users.

Also, the MAPIFolder, I can't seem to find the field or place to insert
value into the object.

Any remedies?

Thank you
 
K

Ken Slovak - [MVP - Outlook]

Outlook UserProperties don't apply to a MAPIFolder object, they apply to the
items in the folder. If you want a field that is not visible to the user you
would have to use CDO 1.21 or Extended MAPI or Redemption
(www.dimastr.com/redemption) code to write a new user defined Field to any
item where you want the property to be.

If you want to stick with the Outlook object model you could use the Mileage
field or BillingInformation field, both of which are not usually visible in
an Outlook item.
 
A

Anthony Yio

The Mileage field or BillingInformation field are invisible generally but
still can be edited if were to use Form Designer by some advanced users to
show all the invisible fields.

In the Frequently-Used Fields,

I found that

the field "File As" is uneditable and the Type and Format is Text. I found
that it even could not be edited using Form Designer.

Anyway to code it to make my field uneditable and as Text type like "File
As" using standard Outlook Object Model?

thanks again
 
K

Ken Slovak - [MVP - Outlook]

As I said originally, if you want a field that will be invisible to the user
and even advanced users can't get at then use Fields added to the item using
CDO 1.21, Extended MAPI or Redemption. Those are invisible to the user.
 
A

Anthony Yio

thanks, Ken.

Ken Slovak - said:
As I said originally, if you want a field that will be invisible to the user
and even advanced users can't get at then use Fields added to the item using
CDO 1.21, Extended MAPI or Redemption. Those are invisible to the user.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top