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 / Email with attachment ...
Power Automate
Unanswered

Email with attachment not sending when there isn't not an attachment

(0) ShareShare
ReportReport
Posted on by 18

I have created a Form that has an upload question and it may or may not be filled out. The part of the flow that I am having issues with is I am trying to send an email with the upload question as an attachment. The email is only sending when there is an attachment, I want it to send even if there isn't an attachment. I am using the OneDrive "list files in folder", 'get file content' and 'create file content' connectors to add the attachment. 

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @usethegreymatte

    I guess because the email sending step is inside the apply to each for the attachments.

    So I would check first if attachments exist or not, if exists then send email with attachments otherwise send normal email.

     

     

  • usethegreymatte Profile Picture
    18 on at

    @Mira_Ghaly Is there a way to attach the email from OneDrive outside of the 'Apply to each'? I can't directly specify the name of the file because its going to be different depending on what the attachment is from the Form.

  • Lovemolecule_9 Profile Picture
    14 on at

    Hi Mira, 

    Good afternoon, 

     

    How can I add steps to check if there is an attachment? my challenge is vice verse; It sends an email even if there is no attachment? 

     

    Lovemolecule_9_0-1692705311112.png

    This is my Flow, it works somehow, but I think it can be improved because it is still sending files if one of them is not started with SPIE, as I am canceling sending email after once is checked to prevent sending more than one email.

     

    Thanks in advance.

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard