Exchange 2013 EWS: programmatically set field via unindexed or indexed FieldUri RRS feed

  • Question

  • I am working on a java-application, that exports contact data with axis2.
    Now I need to export (our) custom attributes configurably.

    So I read the parts of the FieldUri and the value from a config file and want to hand that information over to
    the ExchangeWebServiceStub.

    For an extended property I can do:

       public void setExtendedProperty(
                DistinguishedPropertySetType.Enum distinguishedPropertySetId,
                String propertyName,
                MapiPropertyTypeType.Enum propertyType,
                String value,
                ContactItemType item) {
            ExtendedFieldURIDocument fieldUriDocument = ExtendedFieldURIDocument.Factory.newInstance();
            PathToExtendedFieldType pathToExtendedField = getPathToExtendedField(fieldUriDocument);
            ExtendedPropertyType extendedProperty = item.addNewExtendedProperty();

    Can I do something similar with an unindexed or an indexed FieldUri?

    Monday, February 13, 2017 3:08 PM