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

Sharepoint list - check for attachments

I am trying to create a flow on a sharepoint list to check if the created item has an attachment or not.

If the item does not have an attachment and email will be sent.

I have created the following condition @equals(triggerBody()?['Attachments'], 'false') but the flow does not send the email.

I get the following error on the send email action : ActionBranchingConditionNotSatisfied. The execution of template action 'Send_an_email' skipped: the branching condition for this action is not satisfied.

Any ideas?

Cheers

8 REPLIES 8
Community Support Team
Community Support Team

Re: Sharepoint list - check for attachments

Hi Rlmckean,

 

Do you want to check if a list item has attachment?
Could you show me the screenshot of your flow to reproduce this issue on my side?


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

Re: Sharepoint list - check for attachments

Hi, Yes I would like to check if a list item does/does not have an attachment.

 

Please see attached screen shots.

 

19-04-2017 09-04-26.png19-04-2017 09-02-36.png

DamienFlood
Level: Powered On

Re: Sharepoint list - check for attachments

@v-yamao-msft Hi there,

 

wondering if you had a chance to look at the below?

 

Cheers

clechner
Level: Powered On

Re: Sharepoint list - check for attachments

In your condition, go to ADVANCED mode.  Then add the below and see if it works.

 

 

@equals(triggerBody()?['Attachments'], bool('False'))

DamienFlood
Level: Powered On

Re: Sharepoint list - check for attachments

@clechner Hi,

 

I have tried this and I still get the same error when trying to send the mail if the condition is true.

 

"ActionBranchingConditionNotSatisfied. The execution of template action 'Send_an_email' skipped: the branching condition for this action is not satisfied."

Community Support Team
Community Support Team

Re: Sharepoint list - check for attachments

Hi DamienFlood,

 

I am afraid your scenario might not able to be achieved. Currently, Flow cannot detect attachment in a list. Please consider to vote this similar idea at here:
https://powerusers.microsoft.com/t5/Flow-Ideas/Copy-SharePoint-list-attachments/idi-p/10826


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

Re: Sharepoint list - check for attachments

Not sure if you got a solution for this. I was trying a workflow which required to check if there is an attachment available in the item and was able to work it out. Seems MS has rolled out something which was not present earlier. There is a dynamic content called "Has attachments" now which checks if there is an attachment available, the expression would work as follows

 

@equals(body('Update_item')?['{HasAttachments}'], bool('false'))

 

The Update_item was a previous action I called, so it could be any action which can call the item.

 

Regards,

Leejoh

amcgill
Level: Power Up

Re: Sharepoint list - check for attachments

I got this to work by removing the single quotes from the suggested bool():

 

@equals(triggerBody()?['{HasAttachments}'], bool(False))

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 (Last 30 Days)
Users online (5,564)