Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Integration with Logic Apps

Posted on by 247

Hi guys,

Microsoft recommend to use Logic Apps for integration, especially for enterprise integration - not in general, I know ;)


I want to using Logic Apps, but there are some limitations, which I would like solve:

  • How can I guarantee that my Logic App is only triggering on a specific use case?
    • Otherwise the Logic App is triggered every time when an update on e.g. a contact is happened in CRM

I mean, if I register my Azure Service Bus directly via PluginRegistration tool, I'm able to filter attributes or logic. 

But my goal is to decouple CRM from integration.

Regards,

Martin

  • AriaConsulting Profile Picture
    AriaConsulting 2,655 on at
    RE: Integration with Logic Apps

    To achieve decoupling plus event-driven, you have some options:

    • You can use Azure Functions.  Functions provides a basic eventr-driven decoupling layer, and then you can use either Logic Apps or Power Automate Flows, dpending on the complexity and scale of what you want to do
    • You can use Azure Event Grid (and even up to Event Hub) to utterly decouple.  And a logic app can be invoked based upon the signals to Event Grid
  • MaSc4Crm Profile Picture
    MaSc4Crm 247 on at
    RE: Integration with Logic Apps

    Hi guys,

    thanks for your answer.

    Regarding the answer of Wahaj:

    This means the Logic App is triggered at least one time, when any action in CRM is happened - Benefit: Decoupled from D365.

    Regarding the answer of Frank:

    This means D365 and the integration layer are not decoupled, because D365 is triggering the Logic App. Is there still a benefit to use Logic Apps, when we don't use the D365 trigger anymore? Or is the benefit to have at least a part of code-less implementation within the Logic App itself?

    Is there any way how to decouple D365 from integration layer? E.g. F&O provides the capability of creating "Business Events", which can be used as trigger in a Logic App.

    My general approach is that integration layer is pulling information from CRM and is triggered by certain events. But I guess Logic Apps does not provide this feature out of the box.

    I mean from enterprise integration perspective, is it better approach to have multiple Logic Apps or to less Logic Apps with more actions in it?

    Regards,

    Martin

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Integration with Logic Apps

    Hi,

    You can use Http trigger as a trigger for your Azure logic app:

    https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-http-endpoint#create-a-callable-endpoint

    Then use JavaScript to set events such as `onSave` events, and use Web API to call Azure logic app:

    Using XMLHttpRequest - Web APIs | MDN (mozilla.org)

  • Suggested answer
    Wahaj Rashid Profile Picture
    Wahaj Rashid 11,319 on at
    RE: Integration with Logic Apps

    Hi,

    Why don't you add conditions in the logic app itself to skip the rest of the steps when a condition is not met?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,151 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,963 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans