Skip to main content

Notifications

Power Automate - General Discussion
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. 

  • Lovemolecule_9 Profile Picture
    Lovemolecule_9 14 on at
    Re: Email with attachment not sending when there isn't not an attachment

    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.

  • usethegreymatte Profile Picture
    usethegreymatte 18 on at
    Re: Email with attachment not sending when there isn't not an attachment

    @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.

  • Mira Ghaly Profile Picture
    Mira Ghaly 11,409 on at
    Re: Email with attachment not sending when there isn't not an attachment

    @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.

     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard