簡體   English   中英

將邏輯應用連接到資源日歷

[英]Connecting a Logic App to a resource calendar

我有一個資源(一個房間),我希望能夠獲取有關它的信息並進行報告。

系統從日歷中提取事件,將列表發送到函數應用程序進行處理,然后發送電子郵件。 使用我自己的日歷可以很好地工作。 我的努力是讓它做到這一點,但要使用房間的日歷。

使用圖形資源管理器,我可以獲得所需的信息:

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 : https://graph.microsoft.com/v1.0/users/roomName@bvn.com.au/calendars返回:

{
    "@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,但都無濟於事。

  • 這完全可以做到嗎?
  • 是不是房間配置有問題?
  • 我應該放棄連接器並改用 HTTP GET 嗎?
  • 我錯過了一些非常明顯的東西嗎?

我在我身邊測試它並初始化一個變量來存儲日歷的 id。 然后使用這個變量作為日歷 id 來獲取事件,它工作正常。

在此處輸入圖片說明

所以請檢查您的日歷 id 的類型和格式是否正確,邏輯應用連接器可以實現此要求。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM