Multiple triggers for logicapp

kamraatul 0 Reputation points
2023-03-28T16:46:39.21+00:00

How can we create mutiple trigger in logicapp for example if any record inserted or modified in SQL server?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sonny Gillissen 3,751 Reputation points Volunteer Moderator
    2023-03-29T06:12:25.9533333+00:00

    Hi kamraatul

    Thanks for reaching out on Microsoft Q&A!

    You can create multiple triggers on the Code View of your Logic App by creating another object in the “triggers”: { } part of your Logic App code.

    However you should keep in mind the Designer View does not support multiple triggers as of yet, so you can only edit your Logic App from Code View.

    I’ve found an article outside of Microsoft Learn to provide you more insights on this topic:

    https://www.re-mark-able.net/blogs/2021/04/11/logic-app-multi-trigger.html

    So even though it is possible, it is not fully supported yet. What you could do instead is:

    • Make your current Logic App (let’s name it LA1 for now) have an HTTP trigger
    • Create another logic app (e.g. called Trigger1) and set the trigger according to your wishes, and let it call LA1, for example through the standard ‘Logic App’ connector or through the ‘HTTP’ action
    • Create another Logic App having the other trigger (e.g. called Trigger2) and let it also call LA1
    • Etc.

    The above is in my opinion the best possible solution coping with multiple trigger as of this writing. Yes, it includes multiple Logic Apps, but it provides a supported scenario.

    Please click ‘Accept answer’ if you find my response useful. Feel free to drop additional queries in the comments below!

    Kind regards,

    Sonny


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.