Hi, Does anyone know how to retrieve the SCL value in an event sink running on a mailbox using the ADO RecItem.Fields property ? Using this method: recItem.Fields("urn:schemas:mailheader:to").Value As I have learned it is an Extended MAPI property.And may not be available with the ADO object Roy K
You can get this property via ADO in a store event sink just use http://schemas.microsoft.com/mapi/proptag/x40760003 (PR_CONTENT_FILTER_SCL). Cheers Glen "RoyK" wrote in message news:3FA2F08C-F98C-4C34-A9C4-8DF8B3063D04@microsoft.com... > Hi, > Does anyone know how to retrieve the SCL value in an event sink > running on a mailbox using the ADO RecItem.Fields property ? > Using this method: > recItem.Fields("urn:schemas:mailheader:to").Value > > As I have learned it is an Extended MAPI property.And may not > be available with the ADO object > > Roy K
Hi, When I try: strMsgXSCL = recItem.Fields("http://schemas.microsoft.com/mapi/proptag/x40760003") or strMsgXSCL = recItem.Fields("http://schemas.microsoft.com/mapi/proptag/x40760003").Value I receive this in log: Object doesn 't support this property or method Roy "Glen Scales [MVP]" wrote: > You can get this property via ADO in a store event sink just use > http://schemas.microsoft.com/mapi/proptag/x40760003 (PR_CONTENT_FILTER_SCL). > > Cheers > Glen > > "RoyK" wrote in message > news:3FA2F08C-F98C-4C34-A9C4-8DF8B3063D04@microsoft.com... > > Hi, > > Does anyone know how to retrieve the SCL value in an event sink > > running on a mailbox using the ADO RecItem.Fields property ? > > Using this method: > > recItem.Fields("urn:schemas:mailheader:to").Value > > > > As I have learned it is an Extended MAPI property.And may not > > be available with the ADO object > > > > Roy K > > >
Try to use this syntax: recItem.Fields("http://schemas.microsoft.com/mapi/proptag/0x40760003") Regards, Victor Ivanidze software developer "RoyK" wrote in message news:3F915E6D-360F-43C5-9C98-58CCEF856E39@microsoft.com... > Hi, > When I try: > strMsgXSCL = > recItem.Fields("http://schemas.microsoft.com/mapi/proptag/x40760003") > or > strMsgXSCL = > recItem.Fields("http://schemas.microsoft.com/mapi/proptag/x40760003").Value > > I receive this in log: > Object doesn 't support this property or method > > Roy > > "Glen Scales [MVP]" wrote: > >> You can get this property via ADO in a store event sink just use >> http://schemas.microsoft.com/mapi/proptag/x40760003 >> (PR_CONTENT_FILTER_SCL). >> >> Cheers >> Glen >> >> "RoyK" wrote in message >> news:3FA2F08C-F98C-4C34-A9C4-8DF8B3063D04@microsoft.com... >> > Hi, >> > Does anyone know how to retrieve the SCL value in an event sink >> > running on a mailbox using the ADO RecItem.Fields property ? >> > Using this method: >> > recItem.Fields("urn:schemas:mailheader:to").Value >> > >> > As I have learned it is an Extended MAPI property.And may not >> > be available with the ADO object >> > >> > Roy K >> >> >>
Hi, Tried with your suggestion: strMsgXSCL = recItem.Fields("http://schemas.microsoft.com/mapi/proptag/0x40760003") same error message in log: (Object doesn 't support this property or method) another property works fine: strMsgSubject = recItem.Fields("urn:schemas:httpmail:subject").Value Roy "Victor Ivanidze" wrote: > Try to use this syntax: > > recItem.Fields("http://schemas.microsoft.com/mapi/proptag/0x40760003") > > Regards, > > Victor Ivanidze > software developer > > > "RoyK" wrote in message > news:3F915E6D-360F-43C5-9C98-58CCEF856E39@microsoft.com... > > Hi, > > When I try: > > strMsgXSCL = > > recItem.Fields("http://schemas.microsoft.com/mapi/proptag/x40760003") > > or > > strMsgXSCL = > > recItem.Fields("http://schemas.microsoft.com/mapi/proptag/x40760003").Value > > > > I receive this in log: > > Object doesn 't support this property or method > > > > Roy > > > > "Glen Scales [MVP]" wrote: > > > >> You can get this property via ADO in a store event sink just use > >> http://schemas.microsoft.com/mapi/proptag/x40760003 > >> (PR_CONTENT_FILTER_SCL). > >> > >> Cheers > >> Glen > >> > >> "RoyK" wrote in message > >> news:3FA2F08C-F98C-4C34-A9C4-8DF8B3063D04@microsoft.com... > >> > Hi, > >> > Does anyone know how to retrieve the SCL value in an event sink > >> > running on a mailbox using the ADO RecItem.Fields property ? > >> > Using this method: > >> > recItem.Fields("urn:schemas:mailheader:to").Value > >> > > >> > As I have learned it is an Extended MAPI property.And may not > >> > be available with the ADO object > >> > > >> > Roy K > >> > >> > >> > > >
Following piece of code works fine for me in a OnSyncSave Event sink Set DispEvtInfo = pEventInfo Set ADODBRec = DispEvtInfo.EventRecord wfile.writeline ADODBRec.fields("http://schemas.microsoft.com/mapi/proptag/0x40760003").value I would say your getting this error because recItem.Fields is returning null which usually mean the property isn't set. Are you using this in a Store Event sink and not a SMTP event sink. The SCL value itself is passed though on the X-Exch500 Blob so its not available in something like a onarrival sink You might want to look at using something like Outlook spy or Mdbvu32 to look at the messages in the inbox yourself to see if the property is actually getting set. Cheers Glen "RoyK" wrote in message news:F0CD9119-F7EF-4325-ACC7-98C6D6344C53@microsoft.com... > Hi, > Tried with your suggestion: > strMsgXSCL = > recItem.Fields("http://schemas.microsoft.com/mapi/proptag/0x40760003") > > same error message in log: > (Object doesn 't support this property or method) > > another property works fine: > strMsgSubject = recItem.Fields("urn:schemas:httpmail:subject").Value > > Roy > > > "Victor Ivanidze" wrote: > >> Try to use this syntax: >> >> recItem.Fields("http://schemas.microsoft.com/mapi/proptag/0x40760003") >> >> Regards, >> >> Victor Ivanidze >> software developer >> >> >> "RoyK" wrote in message >> news:3F915E6D-360F-43C5-9C98-58CCEF856E39@microsoft.com... >> > Hi, >> > When I try: >> > strMsgXSCL = >> > recItem.Fields("http://schemas.microsoft.com/mapi/proptag/x40760003") >> > or >> > strMsgXSCL = >> > recItem.Fields("http://schemas.microsoft.com/mapi/proptag/x40760003").Value >> > >> > I receive this in log: >> > Object doesn 't support this property or method >> > >> > Roy >> > >> > "Glen Scales [MVP]" wrote: >> > >> >> You can get this property via ADO in a store event sink just use >> >> http://schemas.microsoft.com/mapi/proptag/x40760003 >> >> (PR_CONTENT_FILTER_SCL). >> >> >> >> Cheers >> >> Glen >> >> >> >> "RoyK" wrote in message >> >> news:3FA2F08C-F98C-4C34-A9C4-8DF8B3063D04@microsoft.com... >> >> > Hi, >> >> > Does anyone know how to retrieve the SCL value in an event sink >> >> > running on a mailbox using the ADO RecItem.Fields property ? >> >> > Using this method: >> >> > recItem.Fields("urn:schemas:mailheader:to").Value >> >> > >> >> > As I have learned it is an Extended MAPI property.And may not >> >> > be available with the ADO object >> >> > >> >> > Roy K >> >> >> >> >> >> >> >> >>