none
contact PersonalHomePage using EWS RRS feed

  • Question

  • Hi there,

    I'm trying to create a contact item using EWS in Exchange ,  I'm using Proxy code, but it seems I cannot set the PersonalHomePage value, I think it's set through the extended property 0x3A50, here is piece of my code:

    PathToExtendedFieldType pathToExtendedFieldType2 = new PathToExtendedFieldType();
    pathToExtendedFieldType2 .setPropertyType(MapiPropertyTypeType.STRING);
    pathToExtendedFieldType2.
    setDistinguishedPropertySetId(DistinguishedPropertySetType.ADDRESS);
    pathToExtendedFieldType2.setPropertyId(0x3A50);

    ExtendedPropertyType extendedPropertyType2 = new ExtendedPropertyType();
    extendedPropertyType2
    .setExtendedFieldURI(pathToExtendedFieldType2);
    extendedPropertyType2.setValue("Http://test123.com");

    contact.getExtendedProperty().add(extendedPropertyType2);


    If you can provide any insight, I will be much appreciated.

    James

    Friday, November 23, 2012 9:52 PM

Answers

  • This is a Tagged Property (eg the PropTag is less the x8000) and your using it like a named property for a description of the differeance between the two see http://msdn.microsoft.com/en-us/library/cc979184.aspx you should just have

    PathToExtendedFieldType pathToExtendedFieldType2 = new PathToExtendedFieldType();
    pathToExtendedFieldType2.setPropertyType(MapiPropertyTypeType.STRING);
    pathToExtendedFieldType2.setPropertyTag(0x3A50);
     
    ExtendedPropertyType extendedPropertyType2 = new ExtendedPropertyType();
     extendedPropertyType2
     .setExtendedFieldURI(pathToExtendedFieldType2);
     extendedPropertyType2.setValue("Http://test123.com");
     
    contact.getExtendedProperty().add(extendedPropertyType2); 
    Cheers
    Glen
    • Marked as answer by truezjz Friday, November 30, 2012 9:09 PM
    Tuesday, November 27, 2012 5:56 AM