web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / "When a new email arri...
Power Automate
Answered

"When a new email arrives in a shared mailbox" - attachment versus no attachment

(0) ShareShare
ReportReport
Posted on by 26

We've created a flow that will automatically create an incident in servicenow when an email is received to a shared mailbox.  Using the flow "When a new email arrives in a shared mailbox" we ran into an issue that the "Has Attachment" configuration is either set at "yes" or "no" (this really should have an "any" option as well) that we set to "yes", and any emails without an attachment would not trigger the flow.  So our solution to this was to build a parallel flow that has the "Has Attachment" configuration set to "no" and that does pick up the emails without an attachment.... but it also is picking up the emails with an attachment, creating duplicate incidents.

 

And as I typed this, I realized I probably could just turn off the one built specifically for attachments, and let the one that is set to "no" pick up both emails with and without attachments, but this seems like a weird bug/quirk to not just let it pick up all emails, regardless of attachments?  

Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    on at

    Hi @MCCLabelFlow ,

     

    It may be that the description here has caused you confusion.

    The hint in Has Attachment field is "Should the email contains attachments". It has three options to choose from. After testing, you could find that the effects of these three options on the trigger are as follows.

    • Yes: The message must contain an Attachment, and Flow will trigger.
    • No: Flow will trigger regardless of whether the email contains an attachment.
    • No choice is made: Regardless of whether the email contains an attachment or not, Flow will trigger.

    It can be seen that the choice of No has the same limitation as not making any changes.

     

    You could also consider using Condition to determine whether or not to contain attachments. Although Flow will trigger, the following actions will only be executed according to Condition.

    44.PNG

    It is also worth noting that if you want to reference the contents of the attached file in the following action, you need to set Include Attachment field to Yes.

     

    Best Regards,

  • MCCLabelFlow Profile Picture
    26 on at

    Ultimately "no" ended up being the solution for us, we think, but strangely when we select "no" it does let us use the attachment downstream?  Also seems like "any" is really the choice most people would want here?  But solution accepteed.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard