Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

failed flow if no attachment in microsoft form

(0) ShareShare
ReportReport
Posted on by

I have a Microsoft form that requires 1 attachment and has the option for a second attachment.  I have my flow set up to send an email with the attachments when submitted.  It works great if both attachments are uploaded, but fails if only the first required attachment is uploaded.  Is there a way to fix this? 

traceyf_0-1643963636818.png

 

  • Community Power Platform Member Profile Picture
    on at
    Re: failed flow if no attachment in microsoft form

    thank you!  fixed it by adding a condition!

  • v-LilyW-msft Profile Picture
    on at
    Re: failed flow if no attachment in microsoft form

    Hi @Anonymous 

    Has your problem been solved? 

    You can take a try to use length() function to check if there is an attachment uploaded in the option for a second attachment. If yes, use Parse JSON to get the attachment content and send it by email.

    vLilyWmsft_1-1644298022956.png

     

    Hope the content above may help you.

    Best Regards

     

  • Verified answer
    RoshanShrestha Profile Picture
    21 on at
    Re: failed flow if no attachment in microsoft form

    Email could be sent with a condition. Eg: creating a condition to send email with different options. If else condition could be handy.

    Another option would be to use coalesce function in the expression section.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1