简体   繁体   中英

Exchange Web Service Managed API: How to get Task from E-Mail?

I am using EWS to get some E-Mails, everything works fine but now i have to implement the "CompleteDate" which is set when someone uses this Red Flag in Outlook to set it to a Task.

I searched everything but i dont find a way to get the task from the E-Mail.. i tried to bind the Mail as a Task but id didnt work:

Task task = Task.Bind(service, item.Id);

Could anyone help me out here?

What can help is make use of IlSpy for viewing the DLL. A other great tool is EWSEditor. Its free and you can use it to read items based on EWS. A e-mail cant be a task, you dont have the properties for the task. To get the task you need to search by subject.

See example: http://code.msdn.microsoft.com/Exchange-2013-Find-tasks-0d2633ec (With coding example)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM