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 / Flow with Multiple Att...
Power Automate
Unanswered

Flow with Multiple Attachment works but fails having no attachment.

(0) ShareShare
ReportReport
Posted on by 42

Hi There,

 

I have amended a working flow that has the ability to send an email having multiple attachments. Got to know that end user may have to upload multiple files and, in that case, where I have only one attachment question in the form (don't want to add 2 extra attachment questions within the form) but flow to work with more than 1 attachment. Have set 3 files (100mb each to get uploaded)

 

So, the below is the changes made to my working flow:

 

YanZZah_0-1701221829025.png

 

 

YanZZah_1-1701221908542.png

 

 

YanZZah_2-1701221950416.png

 

Once the request is submitted user is able to receive 3 attachments but with no attachment flow fails

 

YanZZah_3-1701222671273.pngYanZZah_4-1701222717236.png

 

I have used compose option I/O condition; length option (length(outputs)'Compose')) but none of it works.

 

Also, have used this but of no avail.

 

"content": {
"type": ["number","null"]
}

 

One can see I have used the "array" instead of "string" type for initialise variable. 

 

Not sure where to use a condition if there would be no attachment whilst to use "Array" instead of "String".

 

content in the form have 4 options for user to select A, B, C and D for submission with different email addresses for users in a user group to receive those contents. just that if no attachment is there how to resolve the issue that A, B, C or D content can reach to all users?

 

Would be highly appreciable if someone can guide me through on how to fix the issue.

 

Regards

 

 

 

Categories:
  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @YanZZah ,

    If 'Parse Json' is not equal to empty, get the file content.

    vyetonggumsft_0-1701225044688.png

    empty(body('Parse_JSON'))

    Best Regards,

    Sunshine Gu

  • YanZZah Profile Picture
    42 on at

    Hi v-yetonggu,

     

    Thank you for your quick response.

     

    I have added the condition as you can see from the below snippet uploaded to image hosting site.

     

    https://i.ibb.co/pnCY2n9/PO-TEST-6-12-23.png 

     

    Still attachments are getting received via email but without attachment it's stuck at Parse Json step

     

    YanZZah_0-1701901567232.png

     

    In the form before attachment question i have "PO needs an attachment question and isn't a required option but attachment question is set to "required" and contrariwise.

     

    Not too sure whether the condition is added at a step it shouldn't be there or something else I cannot figure.

     

    Hoping you can guide me through on this.

     

    thank you.

     

     

     

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 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard