Custom Properties or Reply

  • Thread starter Bridgji
  • Start date Views 1,982
Status
Not open for further replies.
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.

"Bridgji" <u59223@uwe> wrote in message news:a63a655431395@uwe...
> 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.
>
 
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
- wrote:
> 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.

"Bridgji" <u59223@uwe> wrote in message news:a63d4d049fe74@uwe...
> 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
 
B

Bridgji

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

the right direction.
- wrote:
> 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

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.

"Bridgji " <u59223@uwe> wrote in message

news:a64811c1fd749@uwe...
> 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

> >
>
>
 
B

Bridgji

Thanks again for all the help.

Jim
- wrote:
> 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.
>
> > Ken,
> >

> [quoted text clipped - 8 lines]
> > Thanks
> > Jim



 
Status
Not open for further replies.
Top