title: Appointment color change in Exchange using Java EWS 1.2
body: <p>I am making use of this piece of code to set the color. It;s setting color on my computer, but when I send appointments to others, the color is not getting set in their calendar after they accept it.</p>
  
  <pre><code>ExtendedPropertyDefinition propDefColor = new ExtendedPropertyDefinition(
    UUID.fromString("00062002-0000-0000-c000-000000000046"),
    0x8214, MapiPropertyType.Integer);
  appointment.setExtendedProperty(propDefColor, "6");
  </code></pre>
  
  <p>I tried to retrieve it after saving an appointment with this piece of code, but it didn't work.</p>
  
  <pre><code>PropertySet propset=new PropertySet(BasePropertySet.FirstClassProperties, propDefColor);
  appointment.bind(service,appointment.getId(), propset);
  for(ExtendedProperty extendedProperty : appointment.getExtendedProperties()) {
    System.out.println(extendedProperty.getValue());
  }
  </code></pre>
  
  <p>And I am using:</p>
  
  <pre><code>ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
  </code></pre>
  
  <p>For client requirement. And Java EWS API1.2.</p>
  
  <p>Kindly let me know how to get the color in other clients. (I don't know how to use <code>MasterCategorylist</code> or categories or <code>tryGetProperty()</code>).</p>
  
  <p>Kindly help me in this. If we need to use <code>tryGetProperty()</code>, then how to pass the parameters in it?</p>
  
  <ol>
  <li>Propertydefinition<code>enter code here</code></li>
  <li><code>OutParam&lt;Object&gt;</code></li>
  </ol>
  
  <p>Kindly help.</p>