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.

View solution in original post

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.

View solution in original post

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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

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!

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: 148 members 3,138 guests
Please welcome our newest community members: