如何在多个触发器上触发azure逻辑应用程序?

时间:2016-10-06 13:23:17

标签: azure azure-logic-apps

我目前正在设计一个Azure Logic应用程序,它集成了我们组织的Sharepoint和CRM端点。每当在sharepoint站点上创建新文件时,或者每当修改现有文件时,我都需要执行相同的步骤集。目前,我只能在这两个操作中触发应用程序,但不能同时触发这两个操作。我认为这是设计上的。但无论如何都要在这两个动作上触发逻辑应用程序吗?

1 个答案:

答案 0 :(得分:1)

您可以添加多个触发器,但不能通过UI添加。目前仅在codeview中支持此功能。  
实施例。洛杉矶的多个触发器

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