Custom Properties or Reply

B

Bridgji

I'm trying to persist a custom property with a message within our company. I
can add a custom property on the send event and see it in the other mailbox.
If I forward the email back the custom property value is still on the
forwared email. If I reply the value is dropped and the property has a value
of null. Is there a way to either have the reply hold on to the value or to
retreive the value from the original message which I could then reattach to
the new email. I'm using outlook 2007 currently and writing my add in with
visual studio 2008 and vsto.
 
K

Ken Slovak - [MVP - Outlook]

When reply is clicked you can use the ConversationIndex and
ConversationTopic properties to correlate items. Every item in a
conversation will have the same ConversationTopic (normalized subject). The
initial item in a conversation will have a time/date stamp as a starter
ConversationIndex. Each subsequent member of the same conversation will have
the ConversationIndex from the previous item with a new time/date stamp
appended. So even just by checking length of that property you can order
items and see what is the parent item for your reply.
 
B

Bridgji

First of thanks for taking the time to answer my question! This is the first
Add-in so I'm pretty new to outlooks inner workings and definitely don’t know
the best way to do things.

I know when the initial email is sent if that email and any subsequent
responses need to be tracked. This will be a minority of all emails. If I go
by conversation index etc I could save those values and check to see if it’s
one I’m suppose to track. Would there be any way to flag the email without
putting something in the body or subject to identify that I'm tracking these
emails? I’m just worried about the performance hit looking up somewhere if
it’s a tracked email on every email .

Thanks for the help,
Jim


When reply is clicked you can use the ConversationIndex and
ConversationTopic properties to correlate items. Every item in a
conversation will have the same ConversationTopic (normalized subject). The
initial item in a conversation will have a time/date stamp as a starter
ConversationIndex. Each subsequent member of the same conversation will have
the ConversationIndex from the previous item with a new time/date stamp
appended. So even just by checking length of that property you can order
items and see what is the parent item for your reply.
I'm trying to persist a custom property with a message within our company.
I
[quoted text clipped - 9 lines]
the new email. I'm using outlook 2007 currently and writing my add in with
visual studio 2008 and vsto.
 
K

Ken Slovak - [MVP - Outlook]

You can add user properties to any item (item.UserProperties). You can also
make use of a field that normally isn't used for anything such as Mileage or
BillingInformation.

If you're just getting into Outlook programming you might want to go to
www.outlookcode.com, which has a ton of Outlook programming information and
samples.
 
B

Bridgji via OfficeKB.com

Great thanks I'll go there. I appreciate your time. I think you've got me in
the right direction.

You can add user properties to any item (item.UserProperties). You can also
make use of a field that normally isn't used for anything such as Mileage or
BillingInformation.

If you're just getting into Outlook programming you might want to go to
www.outlookcode.com, which has a ton of Outlook programming information and
samples.
First of thanks for taking the time to answer my question! This is the
first
[quoted text clipped - 16 lines]
Thanks for the help,
Jim
 
B

Bridgji via OfficeKB.com

Ken,

I tried using the BillingInformation field. I'm having the same issue I see
with a user field. If I reply the value is lost. Is this the normal behavior
is there a way to preserve this value automaticly with out having to look at
the parent message?

Thanks
Jim
 
K

Ken Slovak - [MVP - Outlook]

All fields like that will be new and null on opening a new message, whether
a reply or a completely new message. If you want to carry over properties to
replies you must add them yourself.
 

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