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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Checking if a sharepoi...
Power Automate
Answered

Checking if a sharepoint list item has attachment with it

(0) ShareShare
ReportReport
Posted on by 287

I have a situation wherein which i have to check wheather an item created on sharepoint list is having attachment or not because if there is attachment a different set of actions is performed or if there are no attachment another set of action is performed.How to acheive this ?

 

I tried using @equals(triggerBody()?['{HasAttachments}'], bool(False)) at advanced editing mode but it doesn't seemks to work in case of sharepoint list..

Please Help

Categories:
I have the same question (0)
  • Verified answer
    SanchezITM Profile Picture
    153 on at

    Try

     

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

  • vish_p Profile Picture
    287 on at

    Thanks ! Seems to be working for now

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I can't seem to go to 'Advanced Editing mode' to try.  I only have this:

     

    Condition.PNG

  • GrischkePro Profile Picture
    287 on at

    @Anonymous Add Has Attachments from dynamic contents | select Equals | in the expression enter True (or False), click OK.

  • krisztina Profile Picture
    13 on at

    Hi,

     

    This didn't work for me but I found a solution eventually that did, so here it is for everyone who needs it. It is from another thread.

     

    HasAttachment is not equal to null (null as an expression!)

    krisztina_0-1684157638843.png

     

    K.

     

     

  • user157 Profile Picture
    on at

    Hi,

    I am created an approval flow which is triggered by adding a new item in a SharePoint list. Can anyone please help by answering the following two questions:
    1. How can I make the attachment mandatory in the SharePoint list?

    2. How can I add a field in the flow that will check whether certain files are attached in the SharePoint list or not?

     

    Thanks!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard