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

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 89 members 4,120 guests
Please welcome our newest community members: