邀请与会者参加公共日历事件Exchange Web服务 [英] invite attendees to public calendar event in exchange web services

查看:163
本文介绍了邀请与会者参加公共日历事件Exchange Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显然,在世界观,一个是能够​​创造一个公用文件夹预约,邀请人(包括你自己) - 我想和Exchange Web服务复制此

Obviously in outlook, one is able to create an appointment in a public folder and invite people (including yourself) - i want to replicate this with exchange web services.

我可以在自己的日历中创建活动,并邀请人民,工作正常。如果我创建一个公用文件夹的活动,并邀请人,在createItem中对象的 SendMeetingInvitationsOrCancellations 必须设置为 SendToNone ,否则它抛出这个错误:

i can create an event in my own calendar and invite people and that works fine. if i create an event in a public folder and invite people, in the createitem object the SendMeetingInvitationsOrCancellations must be set to SendToNone, otherwise it throws this error:

会议邀请或取消不能居住在公用文件夹中的日历项目被发送。

Meeting invitations or cancellations cannot be sent for calendar items residing in public folders.

这当然意味着没有邀请被发送。在Outlook此​​日历项目,如果我点击邀请与会者的名称是没有办法,我已经把通过Web服务调用。我可以,例如,然后手动从Outlook发送邀请,但我当然希望这是完全自动的。

which of course means that no invitations get sent. on this calendar item in outlook, if i click invite attendees the names are there that i've put in via the webservice call. i could, for instance, then manually send the invitations from outlook, but of course i want this to be all automated.

,我应该做这种方式?似乎疯了,由于某种原因EWS不会让你做你能够在Outlook中做一些事情...?

should i be doing it this way? it seems crazy that for some reason ews wouldn't allow you to do something you're able to do in outlook...?

推荐答案

我做在一个应用程序中添加假日用户日历类似的任务,但我用的任命,而不是日历,这是对当前身份验证的用户创建然后送到一组特定的用户。

I'm doing a similar task in an application to add holiday to user calendars, but I used appointment instead of calendar, which is created for the current authenticated user and then sent to a specific set of user.

该应用程序是用C#编写,但你应该能够翻译的想法。

The application is written in C#, but you should be able to translate the idea.

Appointment appointment = new Appointment(getExchangeService());
appointment.Subject = "Test meeting";
appointment.Start = DateTime.Now;
appointment.End = DateTime.Now.AddHours(2);

foreach (String emailAddress in attendees)
{
    appointment.RequiredAttendees.Add(emailAddress);
}
appointment.Save(SendInvitationsMode.SendToAllAndSaveCopy);

这篇关于邀请与会者参加公共日历事件Exchange Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆