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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send email with and wi...
Power Automate
Unanswered

Send email with and without attachments

(0) ShareShare
ReportReport
Posted on by 9

Hi,

I have a approval flow, and when the approval process finish, the flow send a email. Recently I add a new function "get attachments" to send the attachment along with the final email, but put an attachment in sharepoint list is not mandatory. When not have attachments the flow does not show errors, but the email is not sent. Any idea how to fix?

Categories:
I have the same question (0)
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @eliza_vanessa20  Pls use length() after Get Attachments action. This will give you number of attachments then use condition block and then put rest of the logic in Yes block.

    length(outputs('Get_attachments')?['body'])
    Hardesh15_0-1674292375519.png

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • eliza_vanessa20 Profile Picture
    9 on at

    @Hardesh15  unfornately didn't work. See what I change:

     

    eliza_vanessa20_0-1674343562084.png

     

     

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @eliza_vanessa20  pls share compose output.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • eliza_vanessa20 Profile Picture
    9 on at

    @Hardesh15  see below, I just push the compose from the previous step.

     

    eliza_vanessa20_1-1674427127020.png

     

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @eliza_vanessa20 pls run your flow then share compose output.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • eliza_vanessa20 Profile Picture
    9 on at

    @Hardesh15 

     

    eliza_vanessa20_0-1674431463737.png

     

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @eliza_vanessa20  As compose output is zero that is why it is going into false. Pls check action configuration before compose.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • eliza_vanessa20 Profile Picture
    9 on at

    @Hardesh15 my run teste was without attached, because this is my problem. My flow isn't sending e-mails when not is putted attach in Sharepoint List. Isn't it correct that the output is zero?

     

    See my intire flow. I didn't want to include all the steps after the condition, inside the if not option. The ideal would be to try to force, when there is no attachment, to bring the result as true anyway. But I don't know how to do this.

     

    eliza_vanessa20_0-1674603912854.png

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard