When a new email arrives in a shared mailbox (V2) trigger requires a recurrence interval; I just want to trigger whenever email arrives

Nicholas Demos 1 Reputation point
2022-02-03T00:31:35.83+00:00

Hello,

I want to use the Outlook 'When a new email arrives in a shared mailbox (V2)' trigger to run my Logic App whenever a new email with attachments arrives in my shared mailbox, however during the configuration, it requires me to enter a recurrence interval. I do not want to enter a recurrence interval; I just want it to trigger whenever a new email arrives:

170763-capture.png

This is inconsistent with the online documentation, which does not mention anything about a recurrence interval:

https://learn.microsoft.com/en-us/connectors/office365/#when-a-new-email-arrives-in-a-shared-mailbox-(v2)

Is there a reason it is forcing me to enter a recurrence interval, instead of just triggering whenever an email arrives?

Note this is the trigger for a shared mailbox; the equivalent trigger for a regular mailbox 'When a new email arrives (V3)' does not require a recurrence interval. I have tested this trigger also and it behaves as expected, triggering whenever an email arrives in a regular (not shared) mailbox.

Thank you

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

2 answers

Sort by: Most helpful
  1. Ronen Ariely 15,091 Reputation points
    2022-02-03T07:02:48.827+00:00

    Hi,

    it requires me to enter a recurrence interval.

    Obviously :-) The trigger does not work in push but in pull

    The email server does not push anything to the logic apps when a new email arrives (this is push approach). It is up to the Logic app side to connect the email server and check if a new email arrives (this is pull approach). In other world it is not really a real time trigger which executed when a new email arrives but a logical trigger which check the server every X time. This parameter allow you to configure the interval time between checking for new email.

    This is inconsistent with the online documentation, which does not mention anything about a recurrence interval

    Seems like you sue the word inconsistent wrongly. Not telling someone the entire true does not make it a lie (even if it might be worse) and Not presenting something does not make it inconsistent. If you see two points which present different information then please provide it since this is the meaning of inconsistent (information in one place inconsistent with the information in another place)

    Is there a reason it is forcing me to enter a recurrence interval, instead of just triggering whenever an email arrives?

    And how do your think the logic app will know that a new email arrived ?!?

    The Logic app cannot guess when email arrived and you are not developing anything in the email server side - there is no trigger in the email server side, then the only option the logic apps know that an email arrived is by checking it and it cannot check in stream 100% of the time. The logic apps check for new email every x time

    0 comments No comments

  2. Nicholas Demos 1 Reputation point
    2022-02-03T07:34:45.42+00:00

    Hi

    Thanks for your response. The documentation for 'When a new email arrives in a shared mailbox (V2)' describes it's inputs and behaviour identically to 'When a new email arrives (V3)', although their behaviour is not identical. The former triggers when a recurrence interval expires, the latter triggers when a new email arrives (as it's name suggests). Do you consider the trigger behaviour of 'When a new email arrives in a shared mailbox (V2)' to be consistent with it's name, and furthermore consistent with it's documentation?

    You started your reply with the word "obviously", however the behaviour of the mailbox trigger is not obvious given it's documentation.

    The point of my post is firstly; to ask if there is a way for 'When a new email arrives in a shared mailbox (V2)' to trigger how 'When a new email arrives (V3)' does (that is, run when a new email arrives in the shared mailbox, and not run via a recurrent trigger), and secondly; to raise the observation that the documentation for 'When a new email arrives in a shared mailbox (V2)' omits any mention of the recurrence interval requirement.

    https://learn.microsoft.com/en-us/connectors/office365/#when-a-new-email-arrives-in-a-shared-mailbox-(v2)
    https://learn.microsoft.com/en-us/connectors/office365/#when-a-new-email-arrives-(v3)