How to set ConversationIndex to MapiCalendar Object using Aspose.Email for java API

Hi,
I have to create calendar from MapiCalendar Object. So i have to set ConversationIndex to MapiCalendar Object. Please provide me some sample code.

@kharade.a,

Please give a try to the following sample code for setting the ConversationIndex.

private static void testEmail5()
{
    MapiProperty property = new MapiProperty(MapiPropertyTag.PR_CONVERSATION_INDEX, intToByteArray(123));
    MapiCalendar cal = new MapiCalendar();
    cal.setProperty(property);        
}
public static final byte[] intToByteArray(int value) {
    return new byte[] {
            (byte)(value >>> 24),
            (byte)(value >>> 16),
            (byte)(value >>> 8),
            (byte)value};
}