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 / Checking if a sharepoi...
Power Automate
Unanswered

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
    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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard