cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

count the number of attachments in an email

is it possible to count the number of attachments in an email in a Flow condition. so I can achieve some logic like this.

 

if (number of attachments) > 1 

 

thanks

 

Graham

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: count the number of attachments in an email

Hi @DJVIBE,

 

I have made a test on my side and please take a try with the following:

  • Add “When a new email arrives” trigger.
  • Add a Condition, click “Edit in advanced mode”, type the following formula:
@greater(length(triggerBody()?['Attachments']), 1)
  • Within “If/yes” branch of Condition, add “Send me an email notification” action.

Image reference:2.JPG

The flow works successfully as below:3.JPG 

Best regards,

Kris

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

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: count the number of attachments in an email

Hi @DJVIBE,

 

I have made a test on my side and please take a try with the following:

  • Add “When a new email arrives” trigger.
  • Add a Condition, click “Edit in advanced mode”, type the following formula:
@greater(length(triggerBody()?['Attachments']), 1)
  • Within “If/yes” branch of Condition, add “Send me an email notification” action.

Image reference:2.JPG

The flow works successfully as below:3.JPG 

Best regards,

Kris

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

View solution in original post

Highlighted
Advocate I
Advocate I

Re: count the number of attachments in an email

works as advertised! thanks this saved me... cheers!!! Smiley Happy

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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 (2,308)