Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

[E2010] [EWSMA] [C#] [Windows]: How do I get Tasks to show up in the Calendar view

$
0
0

When creating a task from EWS, the Owner field is empty.  I believe this causes my created Task to disappear when I am in the Calendar view (showing Tasks on the bottom).  The created Task still shows up in the Tasks view, but not the Calendar view (where Tasks are on the bottom).

Creating a task in Outlook shows it on the Calendar view, but creating a Task with the same values from EWS does not show it there.  The only difference is the Owner field of the Task, which is read-only in EWS.  Can we set this somehow?

ExchangeService ews;
ews = new ExchangeService();
ews.UseDefaultCredentials = true;
ews.AutodiscoverUrl("my_email@company.com");

Task taskItem = new Task(ews);
taskItem.Subject = "subject";
taskItem.Body = "body";
taskItem.IsReminderSet = true;
taskItem.ReminderDueBy = DateTime.Now;
taskItem.StartDate = DateTime.Now;

taskItem.Save();

Thanks,

-Daniel


Viewing all articles
Browse latest Browse all 7132


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>