Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Send Email Without Attachment

(0) ShareShare
ReportReport
Posted on by 34

hello 

please help me for this proplem 

i make flow to send email with attachment but when i send email without attachment my flow run but stop in this step and cant send an email 

i want make flow 

1-when i send email with attachmet flow run and send an email 

2- when i send email without attachment my flow run but email not send to me i want how solve this problem

01111.JPG

  • YanZZah Profile Picture
    YanZZah 42 on at
    Re: Send Email Without Attachment

    Hi @jmccune1 and any user who is looking for this answer, this may help you folks as well

     

    Being in a same dilemma how to create a flow that can trigger an email to send out if user is to submit a form with or without an attachment but few trial and error eventually got the know how of the flow

     

    Working flow example below:

     

     

    YanZZah_0-1674086086212.png

    make sure if one is using an initialize variable step would be straight after get response details, then condition stating which question doesn't require an attachment. upon YES send an email without embedded attachment email body and if NO then use Parse JSon > apply to each> condition that contains attachment being YES and same in the email body to be send out

     

    Hope this helps!

  • jmccune1 Profile Picture
    jmccune1 on at
    Re: Send Email Without Attachment

    Hi All,

     

    Did this ever get resolved? I have the same issue, where my flow works if there is an attachment, but fails if there is not an attachment. 

  • v-bacao-msft Profile Picture
    v-bacao-msft on at
    Re: Send Email Without Attachment

    Hi @mohamed,

     

    If the item doesn't contain attachments, then Get attachments will have no data, so Apply to each will not traverse anything, and will not execute all the actions contained in it.

    So there is the kind of situation you mentioned. You only receive an email if you have an attachment.

    You could add a Condition to determine if the item contains attachments, and then configure the corresponding action in the branch in both cases.

    Image reference:

    23.PNG

    Take a try.

     

    Best Regards,

  • mohamed Profile Picture
    mohamed 34 on at
    Re: Send Email Without Attachment

    q.JPGqq.JPGqqq.JPG

  • ScottShearer Profile Picture
    ScottShearer 25,150 on at
    Re: Send Email Without Attachment

    @mohamed

     

    Please post a screen shot of your Flow in design/edit mode.  That will make it easier for others to assist.

     

    Scott

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,526

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard