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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error with Flow - can ...
Power Automate
Answered

Error with Flow - can someone review? Only sends when there is an attachment present apparently...

(0) ShareShare
ReportReport
Posted on by

Hello, 

 

I have a workflow built and it works fine when there is an attachment included, but when there is not, it still says that it 'succeeded' but there is no email sent.  Not sure what I am missing.  I've done workflows like this before without this being an issue, so it has to be something small that I am missing.  Any help is appreciated: 

 

Part 1Part 1part 2part 2part 3part 3

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,323 Most Valuable Professional on at

    I assume your Apply to each is based on the body of Get attachments.  Since the email is sent inside that apply to each, if there are no attachments the Apply to each doesn't run and there is no email.  You need to add a condition just after the Get attachments and see if there are any attachments.  If there are then do what you do now.  If there aren't then send the email.

  • ianallen13V2 Profile Picture
    on at

    Hello, 

     

    I just tried that and I'm still running into issues.  I added a condition where if 'Has Attachments' is equal to, and I tried 'FALSE, TRUE or just left it blank' and it keeps saying that it bypassed the second email and that everything ran successfully.  

     

    Here is a picture of the condition.  Do I have the right field selected and/or what value should I choose?  

     

    attachment.jpg

  • Verified answer
    Pstork1 Profile Picture
    69,323 Most Valuable Professional on at

    Testing for Boolean values is case sensitive.  The best way to do it is to put the True enumeration in the right side using the expression tab.  Like this

    image.png

  • ianallen13V2 Profile Picture
    on at

    That was it - thank you so much!! 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 469

#3
11manish Profile Picture

11manish 364

Last 30 days Overall leaderboard