Can an Azure Logic App have multiple start triggers?
I\'ve read the triggers docs at MSDN but can\'t see anything on having multiple triggers
I guess I'm a bit late to the party, but I have been able to create multiple triggers for a logic app.
In mine, I'm using the SFTP connector to trigger when a file is created or changed. The SFTP connector only allows one folder to be monitored but I didn't want to duplicate the logic app for each folder I want to monitor, so I've added three SFTP triggers to my app, each monitoring a different folder on the same SFTP site.
AFAIK you can only do this in the code view, and once you have multiple triggers you cannot get back to the designer view, but essentially I set up my logic app as I wanted it, then went into the code view, duplicated the trigger definition and changed the bits I needed to change (the name, the folder name and the folder ID).
Trigger history in the Overview screen then allows you to choose which of the triggers you want to see, but whichever trigger has fired, the rest of the logic app runs. You also lose the ability to see the workflow view of the historical runs, but with a few extra clicks you can see what's going on at each stage in the app.
It's a pain that it can only be done in the code view, but it is possible, certainly with the same type of trigger. I'm not sure about mixed trigger types, but I guess as long as you weren't relying on an output from one that doesn't exist in the others then it should be ok. I also tested it with multiple email triggers. Just bear in mind that if the connectors require different connections, you'll need to include each of the connections in your code. To start with it might be worth building each in a separate app then pasting the relevant bits of code in.