ews-java-api
ews-java-api copied to clipboard
How to set or get a follow-up Flag on an email ?
How to set or get a follow-up Flag on an email ?
1.GET Flag:
I can find some solution only for C#, like this
2.SET FLAG
I can find some solution for Java api, like this
but some Class not found in
ews-java-api-2.0.jar
,
Can some one help me, 快来拯救我 :)
I think you should find the conversation first, and then to check the flag status of that conversation. My code is like this:
ConversationId conversationId = emailMessage.getConversationId();
Collection<Conversation> conversations = emailMessage.getService().findConversation(new ConversationIndexedItemView(10), emailMessage.getParentFolderId());
for(Conversation conversation : conversations) {
if (conversation.getId().equals(conversationId) ){
isFlagged = (conversation.getFlagStatus()== Flagged);
}
}
isFlagged = false;
Any update for setting a flag status for a message?
someOne kenow how to set flag?