cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Send email when SharePoint List is Modified - Show Changes in Email

I have found the template to send an email when a SharePoint list is modified, but I was hoping to include in the email a summary of what was modified (similar to how a basic SharePoint list alert works). Is that possible using Power Automate?

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User II
Super User II

Re: Send email when SharePoint List is Modified - Show Changes in Email

The only way you can do this is to:

1) for each column create another column i.e. OldValueZipCode for each column you want to monitor

2) when created populate OldValue with the values that were entered in a flow

3) when modified flow (the one your talking about) use a combination of OldValue and then actual Value to display the email in the format you need

4) update OldValue with Current Value.

 

Not ideal but will achieve what you need. In other words no where is it recorded - the only other way may be to retrieve a older version from rest api and process that, but the approach above is probally simpler.

View solution in original post

Highlighted
Community Support
Community Support

Re: Send email when SharePoint List is Modified - Show Changes in Email

 

Hi @rmurphyMLHC ,

 

In fact, I think the SharePoint List alert can already fulfill your needs.😁

On the contrary, the existing functions in Power Automate have certain limitations and cannot fully meet your needs.

 

As suggested above, you could consider using the Rest API to get the item versions, and use an HTML table to compare whether several key fields have changed.

 

  • The basic steps are similar to those mentioned in this blog, except that we only need to get the first two elements in the result.

Check-for-a-Change-in-a-SharePoint-List-Column-Value

 

  • Then select the fields you need to see if they have changed and configure them with Select action.
  • Finally, configure the HTML table and send the email.

Image reference:

248.PNG249.PNG

 

I hope it helps.

 

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

6 REPLIES 6
Highlighted
New Member

Re: Send email when SharePoint List is Modified - Show Changes in Email

Example:

 

notifyusersharepointlist2.png

Highlighted
Super User II
Super User II

Re: Send email when SharePoint List is Modified - Show Changes in Email

The only way you can do this is to:

1) for each column create another column i.e. OldValueZipCode for each column you want to monitor

2) when created populate OldValue with the values that were entered in a flow

3) when modified flow (the one your talking about) use a combination of OldValue and then actual Value to display the email in the format you need

4) update OldValue with Current Value.

 

Not ideal but will achieve what you need. In other words no where is it recorded - the only other way may be to retrieve a older version from rest api and process that, but the approach above is probally simpler.

View solution in original post

Highlighted
New Member

Re: Send email when SharePoint List is Modified - Show Changes in Email

Thanks for the tip. I will try this!

Highlighted
Super User III
Super User III

Re: Send email when SharePoint List is Modified - Show Changes in Email

Hi @rmurphyMLHC 

 

You need to make SharePoint API call to retrieve version history.

 

Have a look at the below links.

 

https://powerusers.microsoft.com/t5/General-Power-Automate/How-to-get-previous-versions-of-a-list-it...

 

http://johnliu.net/blog/2018/5/microsoft-flow-sharepoint-trigger-on-specific-fields-changed-via-sp-h...

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Highlighted
New Member

Re: Send email when SharePoint List is Modified - Show Changes in Email

Thank you. I will look at this as well.

Highlighted
Community Support
Community Support

Re: Send email when SharePoint List is Modified - Show Changes in Email

 

Hi @rmurphyMLHC ,

 

In fact, I think the SharePoint List alert can already fulfill your needs.😁

On the contrary, the existing functions in Power Automate have certain limitations and cannot fully meet your needs.

 

As suggested above, you could consider using the Rest API to get the item versions, and use an HTML table to compare whether several key fields have changed.

 

  • The basic steps are similar to those mentioned in this blog, except that we only need to get the first two elements in the result.

Check-for-a-Change-in-a-SharePoint-List-Column-Value

 

  • Then select the fields you need to see if they have changed and configure them with Select action.
  • Finally, configure the HTML table and send the email.

Image reference:

248.PNG249.PNG

 

I hope it helps.

 

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

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Top Kudoed Authors
Users online (10,341)