Redemption MAPITable Filter

J

jack

I am attempting to create a filtered MAPITable using a custom field in the filter.

I can get this to work fine on a single machine, however moving the code to another machine fails because the custom field has a different property tag value.

I have a custom contact form on my dev machine (Outlook 2000) that has a custom field comment with a tag of 0x83F4001E, yet on my test Outlook 2003 machine I cannot fine that tag. Other tags that exist on both machines have different values for the tags.

Is there a way to consistently filter MAPITables using custom fields?
 
K

Ken Slovak - [MVP - Outlook]

The tag would be different for any different InfoStore. You need to get it
on the fly for the folder you are interested in. Add a dummy item to that
folder or use an existing one.

I use a Redemption.MessageItem and its GetIDsFromNames method with the name
of my custom field and the MAPI_NAMED_PROP constant.

Const MAPI_NAMED_PROP = "{00020329-0000-0000-C000-000000000046}"
lngMyProp = rdmMessage.GetIDsFromNames(MAPI_NAMED_PROP, _
"STSStoreID") Or &H1E 'for a string property

Const MAPI_REMINDER_PROPSET = "{00062008-0000-0000-C000-000000000046}"
lngMyProp = rdmMessage.GetIDsFromNames(MAPI_NAMED_PROP, _
&H8503) Or &HB 'for a Boolean property

And so on




jack said:
I am attempting to create a filtered MAPITable using a custom field in the filter.

I can get this to work fine on a single machine, however moving the code
to another machine fails because the custom field has a different property
tag value.
I have a custom contact form on my dev machine (Outlook 2000) that has a
custom field comment with a tag of 0x83F4001E, yet on my test Outlook 2003
machine I cannot fine that tag. Other tags that exist on both machines have
different values for the tags.
 

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