[英]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:我也可以使用图形资源管理器来获取日历的 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"
}
}
]
}
But , when I put that ID into the logic app connector:但是,当我将该 ID 放入逻辑应用连接器时:
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.我曾尝试使用资源的电子邮件地址,也尝试过其他一些 ID,但都无济于事。
I test it in my side with initialize a variable to store the id of a calendar.我在我身边测试它并初始化一个变量来存储日历的 id。 Then use this variable as the calendar id to get events, it works fine.然后使用这个变量作为日历 id 来获取事件,它工作正常。
So please check if the type and the format of your calendar id are correct, the logic app connector can implement this requirement.所以请检查您的日历 id 的类型和格式是否正确,逻辑应用连接器可以实现此要求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.