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 / 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:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    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

Forum hierarchy changes are complete!

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

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard