cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pladavm
Level 8

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

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

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! 

JasonHough
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 160 members 6,251 guests
Please welcome our newest community members: