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 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?

2023-01-19 23-07-57_Editar o fluxo _ Power Automate.png
Categories:
  • 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

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 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard