在所有与会者的约会中设置CustomProperties [英] Set CustomProperties on appointment for all attendees

查看:101
本文介绍了在所有与会者的约会中设置CustomProperties的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

tl;博士

CustomProperties设置为有与会者的约会时,只有组织者的约会才能获得CustomProperties.该属性不会传播到其他与会者的约会.

When setting CustomProperties to an appointment that has attendees, only the appointment for the organizer gets the CustomProperties. The properties do not propagate to the appointments of the other attendees.

长版

当我们创建具有多个与会者的约会,然后以每个与会者身份登录时,我们注意到每个ItemId是不同的.因此,似乎会议中的每个与会者都获得了自己的约会副本. (真的希望有人确认这是真的).​​

When we create an appointment with multiple attendees and then log in as each attendee, we notice that each ItemId is different. So, it appears that each attendee in a meeting gets their own copy of an appointment. (Would really like someone to confirm this is true).

但是,在从外接程序中设置自定义属性(使用Outlook JavaScript API)时,只有组织者的约会才能获得该自定义属性,因为当我们以其他任何参与者的身份登录时,我们都无法看到该自定义属性

However, when setting a custom property from our add-in (using the Outlook JavaScript API), only the organizer's appointment gets the custom property as we are unable to see the custom property when we log in as any of the other attendees.

我们相关代码中的摘录:

Snippets from our code that is relevant:

Office.initialize = function (reason) {
    $(document).ready(function () {
         Office.context.mailbox.item.loadCustomPropertiesAsync (onCustomPropertiesLoaded);
    });
};

function onCustomPropertiesLoaded(asyncResults) {
    _customProps = asyncResults.value;
}

//Set custom properties
_customProps.set("myProp", "true");
_customProps.saveAsync(customPropertiesOnSaved);

是否可以使约会的每个副本都具有自定义属性?

Is there a way to have each copy of the appointment have the custom property?

推荐答案

当我们创建约会并有多个参与者,然后以每个参与者身份登录时,我们注意到每个ItemId都是不同的.因此,似乎会议中的每个与会者都获得了自己的约会副本. (真的希望有人确认这是真的).​​

When we create an appointment and have multiple attendees and then log in as each attendee, we notice that each ItemId is different. So, it appears that each attendee in a meeting gets their own copy of an appointment. (Would really like someone to confirm this is true).

是的,约会的与会者副本是该邮箱中单独的新项目.在后端Exchange服务器上,它是一个单独的邮箱存储项,它们不会以任何方式链接(除了可以用来关联它们的属性以外),并且服务器不会更新与会者邮箱中的约会,因此客户端必须始终对其进行更新.进程(对于会议室邮箱,邮箱助手会执行此操作,但这仍然是在服务器上运行的客户端进程).

Yes that's correct an attendees copy of the appointment is a separate new Item in that mailbox. On the back end Exchange server its a separate Mailbox Store Item they are not linked in any way (other then properties that can be used to correlate them) and the server does not update appointments in attendee mailboxes so they must always be updated by a client process (in the case of room mailbox the Mailbox assistant does this but this is still a client process that runs on the server).

但是,在从外接程序中设置自定义属性时,只有组织者的约会才能获得该自定义属性,因为当我们以其他任何参与者的身份登录时,我们无法看到该自定义属性.

However, when setting a custom property from our add-in, only the organizer's appointment gets the custom property as we are unable to see the custom property when we log in as any of the other attendees.

这很可能发生,因为您需要先在约会中保存自定义属性,然后再添加任何与会者并发送会议邀请.重要的是,在添加任何与会者之前,首先使用属性(或附件)保存约会,然后在服务器发出邀请时,这些邀请应包含自定义属性(您可以使用Mapi编辑器并查看邀请来检查正在发生的情况)在组织者的已发送邮件"文件夹中生成).重要的是要记住,因为约会没有在服务器上链接,更新组织者上的属性不会反映在与会者副本上,除非您发送会议更新,然后会议更新被与会者接受,然后会议更新他们的会议记录.日历.

That is most likely happening because you need to first save the custom property on the Appointment before you add any attendees and send meeting invitations. Its important to first save the appointment with the property (or attachments) before you add any attendees, then when the server produces the invites those invites should include the custom property (you can check that is happening using a Mapi editor and looking at the invite being produced in the Sent Items folder of the Organiser). Its important to remember as the appointments aren't linked on the server updating the property on the organiser won't be reflected on the attendees copy unless your sending a Meeting update and that Meeting update is then accepted by the attendees which would then update their calendars.

这篇关于在所有与会者的约会中设置CustomProperties的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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