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

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

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

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (6,299)