我想在创建或更新时同步fresdesk门票 - 我是否必须创建2个单独的逻辑应用程序,一个用于创建,一个用于更新,或者我可以以某种方式创建一个"或"在逻辑应用程序中触发创建或更新事件 - 然后将其流入同一更新文档db步骤?
如果我查看代码视图,我可以只为json定义添加多个触发器吗? e.g。
"triggers": {
"When_a_ticket_is_created": {
"inputs": {
"host": {
"api": {
"runtimeUrl": "https://logic-apis-northcentralus.azure-apim.net/apim/freshdesk"
},
"connection": {
"name": "@parameters('$connections')['freshdesk']['connectionId']"
}
},
"method": "get",
"path": "/trigger/ticketcreated/api/v2/tickets",
"queries": {
"updated_since": "2016-08-19T02:00:00Z"
}
},
"recurrence": {
"frequency": "Minute",
"interval": 5
},
"splitOn": "@triggerBody()",
"type": "ApiConnection"
},
"When_a_ticket_is_updated": {
"inputs": {
"host": {
"api": {
"runtimeUrl": "https://logic-apis-northcentralus.azure-apim.net/apim/freshdesk"
},
"connection": {
"name": "@parameters('$connections')['freshdesk']['connectionId']"
}
},
"method": "get",
"path": "/trigger/ticketupdated/api/v2/tickets",
"queries": {
"updated_since": "2016-08-19T02:00:00Z"
}
},
"recurrence": {
"frequency": "Minute",
"interval": 5
},
"splitOn": "@triggerBody()",
"type": "ApiConnection"
}