James, I'm trying to come up with a Macro in OL2K3 to cull all messages in the selected folder and read the SCL using CDO to look at the internet headers. Then I want to take that SCL and write it to the Billing Information field of the message. That field isn't really used for anything else at my org so it would be great to use it to sort by SCL. Right now I just want to create a macro, but later I may want to put an event sink on my junk e-mail folder that does this at the server level.
So far I have all the code I need to get the SCL but I am trying to write it to the billing information field and I can't seem to find the right property tag.
oMessage.Fields.Add "0x8535", vbString, "TestBillingData", "2903020000000000C000000000000046"
I did a lookup at CDOLIVE http://www.cdolive.com/cdo10.htm and this seems to be right. 0x835 refers to the billing information field and the property set id seems to be correct too, but I'm not sure. Can't seem to find anything good on MSDN.
CdoPropSetID5 "2903020000000000C000000000000046" Generic MAPI ID. Used with all type of item properties (e. g. categories)
Anyway, I don't get an error and it is updating some field, just not the right one. Any ideas?
Jeremiah Cook (Please email me as newsgator won't update your comments)
jcook@inteltech.com