如何在 Microsoft PowerApps 中从 o365 连接获取日历事件?

问题描述 投票:0回答:5

我目前正在使用 Microsoft PowerApps 测试一些内容。我的目标是创建一个应用程序,显示我的 Office 365 帐户的日历事件。我已应用与 Office 365 的连接,并且能够接收电子邮件。但我不知道如何获取事件,因为没有任何记录。在PowerAppStudio环境中我可以看到诸如

Office365.CalendarGetItem(...
之类的功能可用,但语法不清楚。请有人告诉我如何正确使用它。

outlook office365 powerapps
5个回答
2
投票

我的经历如下;

你需要使用

Office365Outlook.CalendarGetTables()

获取日历对象。名称和

Office365Outlook.CalendarGetItems()

获取该对象的日历项目。

演示:

  1. 添加您的 Office365 Outlook 连接器
  2. 创建一个下拉菜单并记下名称,或为其指定一个新名称
  3. 将下拉列表的 Items 值设置为 Office365.CalendarGetTables().value

这为您提供了从中获取日历项目的参考 - 您现在可以使用图库来完成此操作;

  1. 添加画廊(我只是选择一个我喜欢的布局模板并重新配置)
  2. 将图库的 Items 值设置为 Office365.CalendarGetItems(YourDropDownName.Selected.Name).value 其中 YourDropDownName 是您创建的下拉列表的名称。

默认情况下,将从今天的会议开始列出。
CalendarGetItems 有一些过滤选项,语法如下;

Office365Outlook.CalendarGetItems (string table, [advanced][Optional]string $filter, [advanced][Optional]string $orderby, [advanced][Optional]integer $skip, [advanced][Optional]integer $top)

我也使用这个很棒的参考 PowerApps 参考


0
投票

您需要选择一个将读取项目的日历。

Office365.CalendarGetItems(name of your calendar).value

0
投票

将 Office 365 连接器添加为连接 创建空白表格 添加列表框 设置列表框>项目 = Office365.CalendarGetTables().value.DisplayName 添加画廊 将图库样式更改为“数据”选项卡上的“标题”和“副标题” 干图库>Items = Office365.CalendarGetTables().value

您现在可以查看您的日历及其名称。

我要进一步讨论这个......


0
投票

在“我的经验”答案中,我不得不更改“Office365”。到“Office365Outlook”。我怀疑内容错误,因为使用“Office365Outlook.CalendarGetItems”的高级选项示例。

那么

Office365.CalendarGetTables().value Office365.CalendarGetItems(YourDropDownName.Selected.Name).value

成为

Office365Outlook.CalendarGetTables().value Office365Outlook.CalendarGetItems(YourDropDownName.Selected.Name).value

我的 Power Apps 数据源是“Office365Outlook”,我自己的电子邮件帐户位于 https://outlook.office.com/mail/inbox .

这些对我有用。


0
投票

Si tengo un calendario compartido como podria hacer para obtener el id de ese calendario y que me traiga es los eventos de dicho calendario?

© www.soinside.com 2019 - 2024. All rights reserved.