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 / send an email notifica...
Power Automate
Answered

send an email notification v3 isn't working

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey all,

 

I've created a form in Powerapps where it's possible to add an attachment.

After the forum get's submitted I want to notify someone in the organization by email with the information about the form (incl. the attachment).

I've created the flow below when I submit the form the flow runs successful, but it doesn't send a mail.. Before it did send the email, but overnight somehow it doesn't send it anymore.

Email will not send.JPG

Does anyone know how to fix this? I have the idea this happens me often

 

Thanks!

Ramon

Categories:
  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Anonymous 

     

    Check your run history? Which email connector are you using? 

     

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @abm,

     

    When I check my run history I can open the apply to each field and see the details in this field.

     History run 27032020.JPG

     

    When I check the last run I can't view the details Apply to each is vinked correctly but the send email isn't, could this be the issue?

     

    New run.JPG

     

    The connectors are active so I don't know if that can be an issue, might need a reset?

     

    Thanks!

    Ramon

  • Verified answer
    abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Anonymous 

     

    Thanks for the screenshot. Expand the Get Attachments step before the foreach and see what that returns. That might be returning null hence For each loop is not iterating the inside actions.

     

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @abm ,

     

    I've tried to get attachment content before the apply to each, but it automatically get set back to apply to each.

    If I unlock the mail out of the apply to each I can't find the attachment content in the email.

     

    attachment content can't be selected.JPGapply to each created automaticaly.JPG

    Strange that it worked before and now not anymore.

     

    Thanks.

    Ramon

     

  • Verified answer
    efialttes Profile Picture
    14,756 on at

    Hi!

    My suggestion is to add a Condition action block before he apply to each, evaluate if get item 'has attachments' is true, on the false branch add a Terminate action block

    As @abm suggests, it looks like no attachment is stored, so no there is not Apply to each iteration

    Hope this helps 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @efialttes and @abm ,

     

    So it looks like if there is no attachment it will not apply to each what will mean there is no email to be send? is that correct?

    I'll add an condition and check if that will work.

     

    Thanks!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    did it work... inquiring minds want to know.

    Thanks,

    ~Cyn

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous 

     

    Yes it worked, somehow the mail didn't send if there wasn't an attachment.

    So it did send if there was an attachment, but it didn't if there wasn't

    I had to create a condition as below with a "true" if there is an attachment and "false" if there is no attachment.

     

    If it's true I've used the apply to each formula and in the false only the email without an attachment.

     

    This worked for me, the only issue that I run into is that the condition didn't want to work, so I have created an invisible attachment counter which counts my attachments, so if it's 0 there are no attachments, if it's 1 there is 1 attachment and so on

     

     

    Condition attachment.JPG

     

    I hope it's clear how I got it running for my case 🙂

     

    Kind Regards,

     

    Ramon

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard