web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Displaying Only Newly ...
Power Automate
Suggested Answer

Displaying Only Newly Added Data into Email's Message Content Using SharePoint's "When an item or a file is modified" trigger

(1) ShareShare
ReportReport
Posted on by 160

Hi guys, I'm looking into sending an email that contains ONLY the newly added data from the excel file. The data in the excel file is illustrated in the following screenshot below:

 

DelDev_1-1720511448725.png

 

So for example, the newly added data into the excel file are ['Key'] = 1235, ['Date'] = 9 July 2024 and ['Level'], illustrated in a red circle in the screenshot below:

DelDev_2-1720511658542.png

 

The data in the ['Key'] column are all unique. When all the newly added data is added into the excel sheet, all newly added ['Key'] is added and in ascending order shown in the screenshot above. So each time there is a newly added data into the excel sheet, the data in ['Key'] column would be in an increasing order.

 

Therefore the scenario is, whenever there is a newly added data into the excel file, it would trigger the flow to run in Power Automate through using the SharePoint's "When an item or a file is modified".  Referring to the screenshot that was marked with a red circle, after that a condition would be derived in the "Filter Array" action such that if the latest newly added data in the ['Key'] column (denoted as 1235 in a red circle in the above screenshot) is greater than the previous data (denoted as 1234 located in the second row in the screenshot above), then it would proceed to send ONLY the newly added data in the email.

 

The issue is that I'm not sure how to derive it as a condition in the "Filter Array" such that if the latest newly added data in the ['Key'] column (denoted as 1235 in a red circle in the above screenshot) is greater than the previous data (denoted as 1234 located in the second row in the screenshot above) and then send email with the newly added data of ['Key'], ['Date'] and ['Level'].

 

This is my flow in Power Automate so far:

DelDev_3-1720512885697.png

 

Really need help on this, thanks!

 

Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,360 Super User 2025 Season 2 on at
    Hi,
     
    FYI that's not Ascending that Descending Order so Now I am even more confused.
     
    How will you ever know if the newest one was added versus changed? What I mean is...
     
    You didn't mention Tracking, whether or not you already notified about a specific line, so if that line changed 2000 times how do you know not to send something again?
     
    There is no way for you to do this
    "Filter Array" action such that if the latest newly added data in the ['Key'] column (denoted as 1235 in a red circle in the above screenshot) is greater than the previous data (denoted as 1234 located in the second row in the screenshot above
     
    1) any new row will automatically be higher than the previous, so Sort the List based on Descending of the Key and take the Top (1), this will automatically grab you only 1 record and it will be the newest
     
    2) But as to your Check if its higher than the previous.. Why would it ever not be, I am confused. Are you saying the rows get inserted in whatever order?
     
    Please provide a better example/explanation i know in your head hehe it makes sense, but it doesn't.
     
    If you filter how I said above, using the Filter Query (ODATA) and Top Count (1) in the List rows, you only get 1 row back.. the latest.
     
    What happens though if two people save and the person who got key 125 actually hits the flow, save file first? And person with 124 actually updates the file after (yes it can happen unless you are turning on Concurrency for the flow and setting it to 1)
     
    Since 124 is not the highest, you wouldn't send anything?????
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard