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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Capturing initial reco...
Power Apps
Unanswered

Capturing initial record value and highlighting changed entries

(0) ShareShare
ReportReport
Posted on by 100

Hi all,

I'm building a simple app that allows you to toggle a Boolean and then write that changed value back to the source. To allow users to see which gallery items have been edited, I want to create a flag for "IsEdited"  or similar at the item level. This would allow me to highlight those entries for easy identification, and also be used for bulk writeback (e.g. forall patch/updateif all edited entries).

The issue I'm running into is figuring out how to capture the "default" state of each entry when the app is opened and the data is loaded (maybe using a local variable?), and then comparing against that if the toggle is flipped during a session.

I found this question which deals with a similar issue, but that was using dates, which allowed for use of DateDiff( ).

Any help? Thanks! 

Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @RMDNA,

    Do you want to check if the item is updated or not?

     

    Actually, if you have the SharePoint list as the data source, yo could compare the Created with the Modified because they are different if there is any updates happened.

    Set the TemplateFill property of the Gallery as below:

    If(ThisItem.Created=ThisItem.Modified,Red)

     

  • RMDNA Profile Picture
    100 on at

    Hi @v-qiaqi-msft - I want to see if an item property has been updated within the current PowerApps session from its initial value. Source is an Azure SQL DB.

     

    For example: an item in SQL has a current flag value of 0 when it's pulled into the PowerApp. I want to capture that value (0). If I indicate within the app that I want to change the value to 1 (probably with a toggle), I want to be able to identify that difference, and use that to highlight the entry.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard