cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Checking if a sharepoint list item has attachment with it

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver I
Resolver I

Re: Checking if a sharepoint list item has attachment with it

Try

 

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

View solution in original post

4 REPLIES 4
Highlighted
Resolver I
Resolver I

Re: Checking if a sharepoint list item has attachment with it

Try

 

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

View solution in original post

Highlighted
Helper V
Helper V

Re: Checking if a sharepoint list item has attachment with it

Thanks ! Seems to be working for now

Highlighted
Helper I
Helper I

Re: Checking if a sharepoint list item has attachment with it

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

 

Condition.PNG

Advocate III
Advocate III

Re: Checking if a sharepoint list item has attachment with it

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

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (7,294)