EWS-与受邀参加者共享扩展属性

时间:2018-10-17 15:04:25

标签: outlook office365 exchange-server microsoft-graph exchangewebservices

是否可以与Exchange约会的受邀与会者共享扩展属性?换句话说,是否可以使用EWS在Exchange中创建会议,以将其扩展属性(自定义字段)传递给与会者的会议副本(假设他们也使用Exchange)?

到目前为止,我尝试过的所有选项都无法使用-我只能通过EWS和Outlook看到组织者会议中的属性。

工作示例和平或解决方案的解释都很好。

更新。基于this thread,这是我尝试过的方法(它不起作用):

  beforeEach(() => {
    fixture = TestBed.createComponent(GridColumnComponent);
    component = fixture.componentInstance;
//this might be the only tricky part, where to initialize the params object of Aggrid
    component.agInit({
      context: TestBed.createComponent(YourParentComponent).componentInstance,
      data: { otherdata :"tomock"},
      node: { data : "moreDataToMock"}

    });
    fixture.detectChanges();
  });

1 个答案:

答案 0 :(得分:0)

您可以在EWS中使用自定义属性创建约会,然后使用EWS托管API 2.0查看自定义扩展属性

您可以参考以下代码:

   PropertySet YourProperyset = new PropertySet(BasePropertySet.FirstClassProperties);
    var extendendProperty = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Address, "organizer",MapiPropertyType.String);
    YourProperyset.Add(extendendProperty);
    var folderId = new FolderId(WellKnownFolderName.Calendar, new Mailbox(userName));
    var calendar = CalendarFolder.Bind(service, folderId);
    var calendarView = new CalendarView(start, stop);
    calendarView.PropertySet = YourProperyset;
    return calendar.FindAppointments(calendarView).ToList();

有关更多信息,您可以参考以下链接:

Create appointment with custom properties in EWS

Viewing custom extended properties by using the EWS Managed API 2.0

Set CustomProperties on appointment for all attendees