A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

IMAPITable::QueryRows sometimes fails to retrieve values of custom properties



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 10th 06, 02:19 PM posted to microsoft.public.outlook.program_addins
Jan Reher
external usenet poster
 
Posts: 3
Default IMAPITable::QueryRows sometimes fails to retrieve values of custom properties

Greetings,

Context: Using MAPI, I want to look at certain properties of all messages in
an inbox. Instead of opening an IMessage interface on all of the messages,
which will fetch all properties including a possibly large body and a number
of possibly large attachments, I fetch the contents table for the folder,
and then use IMAPITable::SetColumns to indicate just the properties I need.
Finally I call IMAPITable::QueryRows to retrieve the actual values of the
properties.

Problem: Sometimes, only sometimes, the IMAPITable::QueryRows call returns
SRow data where the value of some of the properties is MAPI_NOT_FOUND for
messages that I know have these properties. These properties are custom
properties. I have never seen the problem occur for standard Outlook
properties.

Ideas and suggestions are much appreciated.



Best regards,

Jan Reher


Ads
  #2  
Old August 10th 06, 07:18 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default IMAPITable::QueryRows sometimes fails to retrieve values of custom properties

Are you *sure* you look at the right messages? Do you see the correct
properties in OutlookSpy - click IMAPIFolder, go to the GetContentsTable
tab, add the property in question (SetColumns button) if the property is
not yet listed.
MAPI_NOT_FOUND is sometimes returned if you request multiple version of the
same property - e.g. if you request PR_HTML when PR_BODY and/or
PR_RTF_COMPRESSED is also requested.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Jan Reher" undisclosed wrote in message
...
Greetings,

Context: Using MAPI, I want to look at certain properties of all messages
in an inbox. Instead of opening an IMessage interface on all of the
messages, which will fetch all properties including a possibly large body
and a number of possibly large attachments, I fetch the contents table for
the folder, and then use IMAPITable::SetColumns to indicate just the
properties I need. Finally I call IMAPITable::QueryRows to retrieve the
actual values of the properties.

Problem: Sometimes, only sometimes, the IMAPITable::QueryRows call returns
SRow data where the value of some of the properties is MAPI_NOT_FOUND for
messages that I know have these properties. These properties are custom
properties. I have never seen the problem occur for standard Outlook
properties.

Ideas and suggestions are much appreciated.



Best regards,

Jan Reher




  #3  
Old August 11th 06, 03:53 PM posted to microsoft.public.outlook.program_addins
Jan Reher
external usenet poster
 
Posts: 3
Default IMAPITable::QueryRows sometimes fails to retrieve values of custom properties

Hi Dmitry,

Thank you for the speedy answer. I will investigate, and post back as soon
as I have something to say.


Regards,
Jan Reher

PS: Your presence in the vicinity of Outlook and MAPI is of immense value to
people like me who make extension programs to Outlook for a living.

-----------------------------------------------------

"Dmitry Streblechenko" wrote in message
...
Are you *sure* you look at the right messages? Do you see the correct
properties in OutlookSpy - click IMAPIFolder, go to the GetContentsTable
tab, add the property in question (SetColumns button) if the property is
not yet listed.
MAPI_NOT_FOUND is sometimes returned if you request multiple version of
the same property - e.g. if you request PR_HTML when PR_BODY and/or
PR_RTF_COMPRESSED is also requested.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Jan Reher" undisclosed wrote in message
...
Greetings,

Context: Using MAPI, I want to look at certain properties of all messages
in an inbox. Instead of opening an IMessage interface on all of the
messages, which will fetch all properties including a possibly large body
and a number of possibly large attachments, I fetch the contents table
for the folder, and then use IMAPITable::SetColumns to indicate just the
properties I need. Finally I call IMAPITable::QueryRows to retrieve the
actual values of the properties.

Problem: Sometimes, only sometimes, the IMAPITable::QueryRows call
returns SRow data where the value of some of the properties is
MAPI_NOT_FOUND for messages that I know have these properties. These
properties are custom properties. I have never seen the problem occur for
standard Outlook properties.

Ideas and suggestions are much appreciated.



Best regards,

Jan Reher






  #4  
Old August 14th 06, 03:05 PM posted to microsoft.public.outlook.program_addins
Jan Reher
external usenet poster
 
Posts: 3
Default IMAPITable::QueryRows sometimes fails to retrieve values of custom properties

Answers to Dmitry's questions:
Are you *sure* you look at the right messages? Do you see the correct
properties in OutlookSpy - click IMAPIFolder, go to the GetContentsTable
tab, add the property in question (SetColumns button) if the property is
not yet listed.

Yes, we are definitely looking at the right message, and we see the expected
properties and values in OutlookSpy.

MAPI_NOT_FOUND is sometimes returned if you request multiple version of
the same property - e.g. if you request PR_HTML when PR_BODY and/or
PR_RTF_COMPRESSED is also requested.

We do not request such properties.

So, once again, thanky you. We have decided to open the complete IMessage
interface instead of using IMAPITable::QueryRows, since the perceived
performance loss is not significant. So unless someone happens to have a
bright idea readily available, I think we should terminate this thread.



Regards,
Jan Reher

"Jan Reher" undisclosed wrote in message
...
Hi Dmitry,

Thank you for the speedy answer. I will investigate, and post back as soon
as I have something to say.


Regards,
Jan Reher

PS: Your presence in the vicinity of Outlook and MAPI is of immense value
to people like me who make extension programs to Outlook for a living.

-----------------------------------------------------

"Dmitry Streblechenko" wrote in message
...
Are you *sure* you look at the right messages? Do you see the correct
properties in OutlookSpy - click IMAPIFolder, go to the GetContentsTable
tab, add the property in question (SetColumns button) if the property is
not yet listed.
MAPI_NOT_FOUND is sometimes returned if you request multiple version of
the same property - e.g. if you request PR_HTML when PR_BODY and/or
PR_RTF_COMPRESSED is also requested.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Jan Reher" undisclosed wrote in message
...
Greetings,

Context: Using MAPI, I want to look at certain properties of all
messages in an inbox. Instead of opening an IMessage interface on all of
the messages, which will fetch all properties including a possibly large
body and a number of possibly large attachments, I fetch the contents
table for the folder, and then use IMAPITable::SetColumns to indicate
just the properties I need. Finally I call IMAPITable::QueryRows to
retrieve the actual values of the properties.

Problem: Sometimes, only sometimes, the IMAPITable::QueryRows call
returns SRow data where the value of some of the properties is
MAPI_NOT_FOUND for messages that I know have these properties. These
properties are custom properties. I have never seen the problem occur
for standard Outlook properties.

Ideas and suggestions are much appreciated.



Best regards,

Jan Reher








 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OE fails to retrieve new email from Gmail server Kimberly Anne Thiesen Outlook Express 4 June 11th 06 11:12 AM
Retrieve Email Fails (sbcglobal, other domain) rob Outlook - General Queries 5 April 18th 06 03:38 PM
Custom Form doesn't have any values in another Calendar ML Outlook - Using Forms 3 April 13th 06 09:41 PM
MSG Custom properties on right click custom tab [email protected] Add-ins for Outlook 1 February 1st 06 07:00 PM
MSG Custom properties on right click custom tab Steph Outlook and VBA 1 February 1st 06 06:55 PM


All times are GMT +1. The time now is 11:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.