cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vish_p
Level 8

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
SanchezCSG
Level 8

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

Try

 

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

View solution in original post

4 REPLIES 4
SanchezCSG
Level 8

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

Try

 

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

View solution in original post

vish_p
Level 8

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

Thanks ! Seems to be working for now

misssp
Level: Powered On

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

Highlighted
GrischkePro
Level: Powered On

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

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (2,887)