Logic App Trigger Question

Evan Vougdis 0 Reputation points
2024-05-20T22:38:20.4333333+00:00

Hi all, I have a bot-like workflow setup in Logic Apps to query and API with parameters as specified within the subject and/or message. Whilst my trigger is "When a new message is added", I understand this doesn't necessarily translate to forcibly running my workflow when a new message is received in my Teams channel, however I am having issues with having this workflow running in a consistent and timely manner when all I want is, when a message hits the channel, workflow to trigger.

Any thoughts on this would be appreciated.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,908 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 26,321 Reputation points Microsoft Employee
    2024-05-21T15:21:09.2233333+00:00

    Hi @Evan Vougdis

    I'm assuming what you're referring to is the When a new channel message is added trigger. I found two posts on the Power Community forums which may find helpful in diagnosing the issue

    I'm not a subject matter expert but in your position, with a trigger not going as expected, I would investigate to see if there's any failure in the trigger/connector itself. Or look for any patterns for when it is firing vs not firing when I expect it to. If you haven't already, review Collect diagnostic data for workflows - Azure Logic Apps | Microsoft Learn to gather telemetry and see if anything is standing out.

    If you're not referring to the Teams connector, my apologies; I would, though, would look at using three separate logic apps as workaround if I weren't able to determine why the trigger isn't working as expected.

    The first would be base app that does the actual processing. This app would be trigger by an HTTP webhook trigger which all I would need to do is send the payload that needs to be processed. For the gaps, I would use a reoccurring trigger to capture any missed messages through either the Get Messages connector or directly from the Graph API, an example is shown in this StackOverflow post which will call the base app through the HTTP webhook.

    Also, the Power Platform Community (microsoft.com) is an established community that has more SMEs that are engaged and may better workaround options.