0
我試圖用獲取從Microsoft Exchange Server任務的詳細信息下面的代碼如何使用EWS的Java API
public List readTask() throws Exception{
//Create the extended property definition.
try {
Task t=new Task(service);
ExtendedPropertyDefinition taskCompleteProp = new
ExtendedPropertyDefinition(DefaultExtendedPropertySet.Task, 0x0000811C,
MapiPropertyType.Boolean);
//Create the search filter.
SearchFilter.IsEqualTo filter = new
SearchFilter.IsEqualTo(taskCompleteProp, false);
//Get the tasks.
FindItemsResults<Item> tasks =
service.findItems(WellKnownFolderName.Tasks, filter, new ItemView(50));
service.loadPropertiesForItems(tasks.getItems(), new PropertySet());
for(Item task:tasks){
task.load();
System.out.println(task.getSubject());
System.out.println(task.getBody());
}
return null;
}
我應該如何獲得任務的開始和在特定任務的交貨期得到任務開始日期和截止日期循環