cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DJVIBE
Level: Powered On

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
Community Support Team
Community Support Team

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.
2 REPLIES 2
Community Support Team
Community Support Team

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.
DJVIBE
Level: Powered On

Re: count the number of attachments in an email

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

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fourthImage

Australia Summit

Travel to Melbourne and network with thousands of peers!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 19 members 4,382 guests
Please welcome our newest community members: