cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Has Attachments - Condition if Have

For the following flow:

Trigger: When new email is received
If it has attachments then:
Do flow process 1 if not then Do flow process 2

What is the code I need to put for condition of "Has Attachments" is equal to.......what? I tried True, Yes but it didn't work. 

3 REPLIES 3
Highlighted
Community Support
Community Support

Re: Has Attachments - Condition if Have

Hi Pladavm,

 

Please try to configure the condition as following.

 

In edit mode, select Has Attachment from the Dynamic content, then click the Edit in advanced mode and configure the function with @equals(triggerBody()?['HasAttachment'], bool('True')).

3.PNG

4.PNG

 

I have tested it on my side and it is working as expected. Please try it and let me know if it works for you.

 

Best regards,
Mabel Mao

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

Re: Has Attachments - Condition if Have

You can no longer do this as the "Advanced Mode" feature has been deprecated. Could you please advise how this particular use case can be done using the dynamic expression builder, and without advanced mode? I also need to validate if there are attachments using a condition. Thank you! 

Highlighted
Helper I
Helper I

Re: Has Attachments - Condition if Have

I have done it this way and it worked absoutley fine without the complex of formulas. 

 

Capture.PNG

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 (7,395)