【问题标题】:Microsoft PowerApps | How to get calendar events from o365 connection?微软 PowerApps |如何从 o365 连接获取日历事件?
【发布时间】:2016-10-15 11:09:11
【问题描述】:

我目前正在使用 Microsoft PowerApps 测试一些东西。我的目标是创建一个应用程序,它显示我的 Office 365 帐户的日历事件。我已将连接应用到 Office 365,并且能够收到电子邮件。但我不知道如何获取这些事件,因为没有任何记录。在 PowerAppStudio 环境中可以看到Office365.CalendarGetItem(... 等函数可用,但语法不清楚。拜托,谁能给我解释一下如何正确使用它。

【问题讨论】:

    标签: outlook office365 powerapps


    【解决方案1】:

    我的经验如下;

    你需要使用

    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 reference

    【讨论】:

      【解决方案2】:

      您需要选择一个日历来阅读这些项目。

      Office365.CalendarGetItems(name of your calendar).value
      

      【讨论】:

      • 不,您的回答无效。目前似乎没有办法使日历功能可用。以下引用来自 microsoft powerapps-website “截至撰写本文时,不支持日历和联系人的功能。”
      • 是的,可以从日历中读取项目。我使用该代码在 microsoft power 应用程序中完成了此操作。如果您查看 microsoft 流程,您也可以看到此功能。我想发布一张图片,但我不能......祝你好运
      【解决方案3】:

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

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

      我会在这个问题上更进一步......

      【讨论】:

        【解决方案4】:

        在“我的经验”答案中,我不得不更改“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

        这些对我有用。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2021-05-06
          • 2011-08-18
          • 1970-01-01
          • 1970-01-01
          • 2017-02-26
          • 1970-01-01
          • 1970-01-01
          • 2016-07-04
          相关资源
          最近更新 更多