none
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);
            pathToExtendedField.setDistinguishedPropertySetId(distinguishedPropertySetId);
            pathToExtendedField.setPropertyType(propertyType);
            ExtendedPropertyType extendedProperty = item.addNewExtendedProperty();
            extendedProperty.setExtendedFieldURI(pathToExtendedField);
            extendedProperty.setValue(value);
        }
    


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

    Monday, February 13, 2017 3:08 PM