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.
ExtendedPropertyDefinition propDefColor = new ExtendedPropertyDefinition(
UUID.fromString("00062002-0000-0000-c000-000000000046"),
0x8214, MapiPropertyType.Integer);
appointment.setExtendedProperty(propDefColor, "6");
I tried to retrieve it after saving an appointment with this piece of code, but it didn't work.
PropertySet propset=new PropertySet(BasePropertySet.FirstClassProperties, propDefColor);
appointment.bind(service,appointment.getId(), propset);
for(ExtendedProperty extendedProperty : appointment.getExtendedProperties()) {
System.out.println(extendedProperty.getValue());
}
And I am using:
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
For client requirement. And Java EWS API1.2.
Kindly let me know how to get the color in other clients. (I don't know how to use MasterCategorylist
or categories or tryGetProperty()
).
Kindly help me in this. If we need to use tryGetProperty()
, then how to pass the parameters in it?
- Propertydefinition
enter code here
OutParam<Object>
Kindly help.