cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

If there is no Attachment in list item; Reject

Hello,

 

Ive buit a flow that has been used extensively, however I am running into an ongoing issue where people are forgetting to attach a document (.xlsx file) in the attachment feild.

 

Ive been looking for solutions on the board however cant seem to find an answer.

 

What i want to do is enable the flow to find the attachment first, and if it exists, then proceed with the rest of the flow. If not then it would not go any further and send an email to the requestor letting them know they need to attach and resubmit.

 

1 REPLY 1
Highlighted
Community Support
Community Support

Re: If there is no Attachment in list item; Reject

Hi @Anonymous,

 

I'm afraid I can't see the screenshots you provided in particular, but if you want to determine if the list item contains attachments, the method is basically the same.

You could use Get attachments to get information about item attachments.

Then use empty() function to determine if the output of Body is empty. If it is empty, the attachment does not exist and the mail is sent.

empty(body('Get_attachments'))

If it is not empty, continue with the following action.

Image reference:

1.PNG

Please take a try.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (12,639)