Article ID: 183094 - View products that this article applies to.
This article was previously published under Q183094
When attempting to set the value of a field (property) of a Collaboration Data Objects (1.1, 1.2, 1.21) object, the following error may occur:
The field probably does not yet exist in the underlying Messaging Application Programming Interface (MAPI) object.
Instead of just setting the field value, proceed from the assumption that the field does not exist. Use the Add method of the Fields collection, which facilitates both adding the field and setting the value as follows:
The sample above demonstrates adding and setting the value for the PR_EXPIRY_LIMIT (&H00150040) field. No error occurs if the property already exists.
Steps to Reproduce Behavior
Article ID: 183094 - Last Review: June 6, 2005 - Revision: 3.0
Contact us for more help
Connect with Answer Desk for expert help.