如何在多个触发器上触发 azure logic 应用程序?
How can I trigger an azure logic application on more than one triggers?
我目前正在设计一个集成我们组织的 Sharepoint 和 CRM 端点的 Azure 逻辑应用程序。每当在共享点站点上创建新文件或修改现有文件时,我都需要执行相同的一组步骤。目前,我只能在这些操作中的任何一个上触发应用程序,但不能同时在这两个操作上触发。我认为这是设计使然。但是无论如何都可以在这两个操作上触发逻辑应用程序?
您可以添加多个触发器,但不能通过 UI。目前仅在代码视图中支持此功能。
例子。洛杉矶的多个触发器
"triggers": {
"Recurrence": {
"recurrence": {
"frequency": "Minute",
"interval": 5
},
"type": "Recurrence"
},
"When_a_new_tweet_is_posted": {
"inputs": {
"host": {
"api": {
"runtimeUrl": "https://logic-apis-westus.azure-apim.net/apim/twitter"
},
"connection": {
"name": "@parameters('$connections')['twitter']['connectionId']"
}
},
"method": "get",
"path": "/onnewtweet",
"queries": {
"searchQuery": "#LogicApps"
}
},
"recurrence": {
"frequency": "Minute",
"interval": 3
},
"splitOn": "@triggerBody()?.value",
"type": "ApiConnection"
}
}
我目前正在设计一个集成我们组织的 Sharepoint 和 CRM 端点的 Azure 逻辑应用程序。每当在共享点站点上创建新文件或修改现有文件时,我都需要执行相同的一组步骤。目前,我只能在这些操作中的任何一个上触发应用程序,但不能同时在这两个操作上触发。我认为这是设计使然。但是无论如何都可以在这两个操作上触发逻辑应用程序?
您可以添加多个触发器,但不能通过 UI。目前仅在代码视图中支持此功能。
例子。洛杉矶的多个触发器
"triggers": {
"Recurrence": {
"recurrence": {
"frequency": "Minute",
"interval": 5
},
"type": "Recurrence"
},
"When_a_new_tweet_is_posted": {
"inputs": {
"host": {
"api": {
"runtimeUrl": "https://logic-apis-westus.azure-apim.net/apim/twitter"
},
"connection": {
"name": "@parameters('$connections')['twitter']['connectionId']"
}
},
"method": "get",
"path": "/onnewtweet",
"queries": {
"searchQuery": "#LogicApps"
}
},
"recurrence": {
"frequency": "Minute",
"interval": 3
},
"splitOn": "@triggerBody()?.value",
"type": "ApiConnection"
}
}