web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sharepoint list - chec...
Power Automate
Unanswered

Sharepoint list - check for attachments

(0) ShareShare
ReportReport
Posted on by 21

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

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    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

     

  • DamienFlood Profile Picture
    21 on at

    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 Profile Picture
    21 on at

    @v-yamao-msft Hi there,

     

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

     

    Cheers

  • clechner Profile Picture
    32 on at

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

     

     

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

  • DamienFlood Profile Picture
    21 on at

    @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."

  • v-yamao-msft Profile Picture
    on at

    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

  • Leejoh_Mathew Profile Picture
    20 on at

    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 Profile Picture
    10 on at

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

     

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

  • SYM1986 Profile Picture
    23 on at

    thanks @Leejoh_Mathew , with your help,my flow can work well now.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard