Re: Distribution List issue - Simple solution to #1 is to filter your
contact items to "exclude" IPM.DistList message class items or alternatively
just "include" the specific message class(es) you want to process.
Re: Form level user-defined fields versus User-Property collection
User-property collection may contain all the user-defined fields BUT it will
also contain USELESS field info if there has been any kind of editing done
where fields have been added/deleted etc which must be handled if just
trying to traverse the user-property collection. Not quite as simple and
straight-forward as olContact.UserProperties("FieldName") which will return
the correct entry. Unfortunately, that approach only works if you happen to
know all the field names up front when writing the code. Otherwise one has
to hope that Outlook hasn't introduced one of its many "undocumented
features".
There are a whole myriad of scenarios/caveats for both the folder level &
item level property collections and Outlook can make problematic situations
<very easy> to occur. Can't depend on either collection to be "accurate" for
a specific outcome without somehow knowing (guessing or otherwise stating)
what is and isn't relevant (not to mention having to dynamically alter the
<output> file to keep adding new fields if the plan is to simply go through
each contact one at a time).
However, as Brian correctly stated - this is really an issue related to the
programming group.
Karl
_____________________________________________________________
ContactGenie - Importer 1.3 / DataPorter 2.0 / Exporter
"Power contact importers/exporters for MS Outlook '2000/2003"
http://www.contactgenie.com
1) Your code should handle this either with an On Error Resume Next
statement to ignore the error or by checking the Class property of each item
to see if it is a ContactItem before invoking any contact-specific
properties.
2) In the context of an export, what fields are defined at the folder level
is irrelevant. All the custom fields available for export will be in each
item's UserProperties collection, because it is ***in the item*** that the
data resides.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers