When files added or Modified sftp-ssh Connector in logic app has only one trigger. In MS Documentation, it was mentioned we can have 10 triggers.can someone please let me know How to add multiple triggers to logic app SFT_SSH connector.
I have tried to add more triggers in triggers section in code view but it didnt work
My approach --> added another trigger with _2 in the name.
{
"definition":{
"$schema":"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions":{
},
"contentVersion":"1.0.0.0",
"outputs":{
},
"triggers":{
"When_files_are_added_or_modified_(properties_only)":{
"inputs":{
"host":{
"connection":{
"referenceName":"sftpwithssh_1"
}
},
"method":"get",
"path":"/datasets/default/triggers/batch/onupdatedfile",
"queries":{
"checkBothCreatedAndModifiedDateTime":false,
"folderId":"L1NGVFB0ZXN0",
"maxFileCount":10
}
},
"metadata":{
"L1NGVFB0ZXN0":"/SFTPtest"
},
"recurrence":{
"frequency":"Second",
"interval":10
},
"splitOn":"@triggerBody()",
"type":"ApiConnection"
},
"When_files_are_added_or_modified_(properties_only)_2":{
"inputs":{
"host":{
"connection":{
"referenceName":"sftpwithssh_1"
}
},
"method":"get",
"path":"/datasets/default/triggers/batch/onupdatedfile",
"queries":{
"checkBothCreatedAndModifiedDateTime":false,
"folderId":"L1NGVFB0ZXN9",
"maxFileCount":10
}
},
"metadata":{
"L1NGVFB0ZXN9":"/SFTPtest/Subfolder"
},
"recurrence":{
"frequency":"Second",
"interval":10
},
"splitOn":"@triggerBody()",
"type":"ApiConnection"
}
}
},
"kind":"Stateful"
}