将逻辑应用连接到资源日历

Connecting a Logic App to a resource calendar

我有一个资源(一个房间),我希望能够获取有关它的信息并进行报告。

系统从日历中拉取事件,将列表发送到功能应用程序进行处理,然后发送电子邮件。使用我自己的日历效果很好。我的努力是让它做到这一点,但要使用房间的日历。

使用 Graph Explorer 我可以获得我需要的信息:

https://graph.microsoft.com/v1.0/users/roomName@bvn.com.au/events

我也可以使用图形资源管理器获取日历的 ID:https://graph.microsoft.com/v1.0/users/roomName@bvn.com.au/calendars returns:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('roomname%40bvn.com.au')/calendars",
    "value": [
        {
            "id": "A very very long string",
            "name": "Calendar",
            "color": "auto",
            "changeKey": "something/somethingElse==",
            "canShare": true,
            "canViewPrivateItems": true,
            "canEdit": true,
            "owner": {
                "name": "RoomName",
                "address": "roomname@bvn.com.au"
            }
        }
    ]
}

但是,当我将该 ID 放入逻辑应用程序连接器时:

我得到一个错误:

{
  "status": 404,
  "message": "The specified object was not found in the store.\r\nclientRequestId: anID\r\nserviceRequestId: anotherID",
  "error": {
    "message": "The specified object was not found in the store."
  },
  "source": "office365-ae.azconn-ae.p.azurewebsites.net"
}

我试过使用资源的电子邮件地址,也试过其他几个 ID,但都无济于事。

我在我这边测试它,初始化一个变量来存储日历的 ID。然后使用这个变量作为日历id来获取事件,它工作正常。

所以请检查您的日历 ID 的类型和格式是否正确,逻辑应用程序连接器可以实现此要求。