When a new email arrives in a shared mailbox (V2) - seems to be missing emails that have arrived.

Gareth T 5 Reputation points
2024-12-05T08:17:17.97+00:00

I have a logic app with the trigger "When a new email arrives in a shared mailbox (V2)" which is set to fetch new emails every 15 seconds and have found that it sometimes doesn't return all the emails that have arrived within those 15 seconds. Here is an example:

I have 2 emails,

1 (picked up) is time stamped Tue, 26 Nov 2024 19:08:02

2 (not picked up) is time stamped Tue, 26 Nov 2024 19:08:04

When I look at the trigger history there was one at Tue, 26 Nov 2024 19:08:15 GMT which did not pick up anything and then one at Tue, 26 Nov 2024 19:08:31 GMT which only pickup the first email.

My trigger is set to pick up:

Importance - Any

Only with Attachments - No

Include Attachments - Yes

Looking at the trigger history it does pickup multiple emails from time to time so I'm a bit stumped as to why this one was missed.

In the mean time I have changed it to trigger every 1 second but I don't think that this would stop this from happening in the future.

Any ideas on what might have gone wrong here are what I should check for or change to stop this from happening?

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

1 answer

Sort by: Most helpful
  1. Khadeer Ali 4,235 Reputation points Microsoft External Staff
    2024-12-05T15:24:09.11+00:00

    Hi Gareth T,Welcome to the Microsoft Q&A Platform! Thank you for reaching out regarding your query on Logic app with the trigger.

    It seems that the issue with the "When a new email arrives in a shared mailbox (V2)" trigger in your Logic App might be due to the polling mechanism. The trigger checks for new emails at the specified interval (every 15 seconds in your case), and if multiple emails arrive within a short span, it might not pick up all emails in a single poll. Additionally, concurrency control settings and known limitations of the trigger could also contribute to some emails being missed.

    Is it possible if you could consider using a different trigger, such as "When a new email arrives (V3)" for regular mailboxes, which might offer more consistent behavior. Additionally, as a workaround, you could use the "When a new email arrives (V3)" trigger to monitor if an email arrived and then use the Graph API to list attachments from the message ID retrieved from the trigger.

    Let us know if you need further assistance!


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.