cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
xsomej
Level: Powered On

Sharepoint list item update - has attachment check

I have an issue with email notifications about Sharepoint item edits.

I want following scenarios:

 

 

  1. item is edited and has an attachment - send me a notification version 1
  2. item is edited and has no attachment - send me a notification version 2
  3. item is edited and another attachment is uploaded next to previously uploaded one - send me a notification version 1

 

Currently I receive both notifications about any change inside the item.
In both versions I use this expression to check if the item has attachment:

equals(triggerBody()?['HasAttachment'],bool('True'))
 
Any idea how to set it up?
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Sharepoint list item update - has attachment check

Hi @xsomej ,

 

You could determine the notification version directly by judging whether Has attachment is equal to true.

You could also consider whether Created is equal to Modified to determine whether the current Flow is triggered because the item is updated.

In addition, in the third case, if you want to monitor whether the current item is updated because it adds additional attachments, it is currently not possible.

There is no way for an existing trigger to monitor whether a specified field has been updated.

One alternative for you could be checking if the number of attachments is expected, as below:

33.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Sharepoint list item update - has attachment check

Hi @xsomej ,

 

You could determine the notification version directly by judging whether Has attachment is equal to true.

You could also consider whether Created is equal to Modified to determine whether the current Flow is triggered because the item is updated.

In addition, in the third case, if you want to monitor whether the current item is updated because it adds additional attachments, it is currently not possible.

There is no way for an existing trigger to monitor whether a specified field has been updated.

One alternative for you could be checking if the number of attachments is expected, as below:

33.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

xsomej
Level: Powered On

Re: Sharepoint list item update - has attachment check

Hi Barry,

 

thanks for that idea, I tried it and it works fine.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,986)