简体   繁体   English

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

[英]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,但都无济于事。

  • 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?我应该放弃连接器并改用 HTTP GET 吗?
  • Am I missing something very obvious?我错过了一些非常明显的东西吗?

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.

相关问题 如何将Azure逻辑应用程序连接到共享日历 - How to connect an azure logic app to a shared calendar 在创建资源时触发 Azure 逻辑应用 - Trigger Azure logic app on resource creation 使用Azure AD帐户将Azure Logic应用连接到SQL - Connecting Azure Logic App to SQL using Azure AD Account 逻辑应用“发生资源事件时”不会触发 - logic app 'When a resource event occurs' won't trigger Azure 资源(Azure 逻辑应用)警报仅被触发一次 - Azure Alert on a Resource (Azure Logic App) is being triggered only once 将App Service连接到不同资源组中的负载平衡群集 - Connecting App Service to Load Balanced cluster in different Resource Groups 使用 Azure CLI 将逻辑应用程序从一个资源组复制到另一个资源组 - Copy the Logic APP from one resource group to another resource group using Azure CLI 使用 sap .net 连接器将逻辑应用程序连接到 sap hana 服务器时出错 - Error connecting logic app to sap hana server using sap .net connector 将现有的逻辑应用程序模板导入到Visual Studio Azure资源组项目中 - Importing existing logic app template to a Visual Studio Azure Resource Group Project 如何使用ARM(Azure资源管理器)部署具有SQL执行sp动作的Logic APP - How to deploy Logic APP that has SQL execute sp action using ARM( Azure Resource manager)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM