locked
Logic App Http trigger multiple methods RRS feed

  • Question

  • Hi,

    I have an interface implemented in BizTalk. I have published schemas as service. The published webservice has multiple methods which invoke different orchestrations. If i were to re build this interface using Logic apps, will i have to have multiple logic apps and have multiple trigger endpoints.

    For example, if I have 3 GET methods and 2 POST methods, how do i get a single endpoint to share to the consuming application.

    Should i front it with APIM and call corresponding LogicApps based on the message type etc. 

    Regards,

    Ujjwal


    -Ujjwal

    Monday, April 8, 2019 11:09 AM

Answers

  • The most similar pattern to what you have now would be an APIM endpoint which routes to the appropriate Logic App based on...whatever.

    Since APIM can also 'translate' the verb, you can merge the GET/POST to the same working Logic App if that's what your situation is.

    • Marked as answer by ujjwalDev Monday, April 8, 2019 12:41 PM
    Monday, April 8, 2019 12:10 PM
  • Sounds like what you are trying to do is something you can achieve (partially) with Azure Functions by building a CRUD REST style API. https://markheath.net/post/azure-functions-rest-csharp-bindings

    With Logic Apps you would configure a method per Logic App / Trigger. But With APIM you can actually manage this to some extend. https://blogs.msdn.microsoft.com/mvpawardprogram/2017/02/21/protecting-azure-logic-apps/

    Regards, Wesley

    • Marked as answer by ujjwalDev Monday, April 8, 2019 12:41 PM
    Monday, April 8, 2019 12:13 PM

All replies

  • The most similar pattern to what you have now would be an APIM endpoint which routes to the appropriate Logic App based on...whatever.

    Since APIM can also 'translate' the verb, you can merge the GET/POST to the same working Logic App if that's what your situation is.

    • Marked as answer by ujjwalDev Monday, April 8, 2019 12:41 PM
    Monday, April 8, 2019 12:10 PM
  • Sounds like what you are trying to do is something you can achieve (partially) with Azure Functions by building a CRUD REST style API. https://markheath.net/post/azure-functions-rest-csharp-bindings

    With Logic Apps you would configure a method per Logic App / Trigger. But With APIM you can actually manage this to some extend. https://blogs.msdn.microsoft.com/mvpawardprogram/2017/02/21/protecting-azure-logic-apps/

    Regards, Wesley

    • Marked as answer by ujjwalDev Monday, April 8, 2019 12:41 PM
    Monday, April 8, 2019 12:13 PM
  • Thanks John. This is similar to what i am trying to achieve. To have a single service endpoint to the consuming application. This will be a APIM endpoint which will then route to different Logic apps.

    -Ujjwal

    Monday, April 8, 2019 12:40 PM
  • Thanks for the good links and directions Wesley.

    -Ujjwal

    Monday, April 8, 2019 12:41 PM
  • Well, for clarity, Azure Functions would not be needed here.
    Monday, April 8, 2019 2:08 PM
  • John is right, I was to quick in my reply on how to achieve this. Functions are not a necessity here.
    Monday, April 8, 2019 3:31 PM