简体   繁体   中英

Connecting a Logic App to a resource calendar

I have a resource (a room) that I'd like to be able to get information about, and make a report about.

The system pulls the events from a calendar, sends the list to a Function App for processing, and then sends an email. it works very nicely using my own calendar. My struggle is getting it to do that but with the room's calendar.

Using the Graph Explorer I can get the information I need using:

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

I can use the graph explorer to get the ID of the calendar too: https://graph.microsoft.com/v1.0/users/roomName@bvn.com.au/calendars Which 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"
            }
        }
    ]
}

But , when I put that ID into the logic app connector:

逻辑应用连接器的屏幕截图

I get an error:

{
  "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"
}

I have tried using the email address of the resource and I have tried a few other IDs, but to no avail.

  • Can this be done at all?
  • Is it a problem with how the room is configured?
  • Should I give up on the connector and use an HTTP GET instead?
  • Am I missing something very obvious?

I test it in my side with initialize a variable to store the id of a calendar. Then use this variable as the calendar id to get events, it works fine.

在此处输入图片说明

So please check if the type and the format of your calendar id are correct, the logic app connector can implement this requirement.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM