How to Compare SharePoint Item Versions in Column Formatting
Question details
The user wants to know if it is possible to use SharePoint column formatting JSON to compare a current list item with its previous version and specifically highlight the column that has changed.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Trying to dynamically highlight changes between list item versions using standard column formatting.
- Observed behavior
- SharePoint Online does not provide an out-of-the-box JSON condition for comparing the current item state with its previous version.
Verify that you have version history enabled for your SharePoint list or document library before attempting to track or compare changes between item updates.
Utilize Custom Development for Version Comparison
Since out-of-the-box column formatting doesn't support previous version comparison, custom development or alternative automation methods are required.
SharePoint Online column formatting JSON relies exclusively on the current state of the item. It does not have native operators to query the version history or compare against previous field values directly. To achieve this highlighting effect, you need to rely on custom solutions or workflow automation.
Consider creating a Power Automate flow that triggers when an item is modified. The flow can compare the previous and current values, and write a flag (like 'Changed') to a hidden helper column that your JSON formatting can read and format accordingly.
Navigate to the Microsoft Q&A community and post your specific scenario using the 'SharePoint Development' tag to get specialized guidance on custom SPFx or JSON implementations from Microsoft engineers.
If you are experimenting with column formatting for customer views and it does not work as expected, click on the column header, go to 'Column settings' > 'Format this column', and remove the JSON code to reset it back to the default view.

Try WPS Office for Seamless Document Management
While SharePoint requires complex development for advanced tracking, WPS Office offers an intuitive, lightweight, and free alternative for creating, editing, and managing your everyday office documents with built-in collaboration and tracking features.
- 1. Download the Software: Visit the official WPS website and click 'Download WPS Office Free' to get the installer.
- 2. Install and Launch: Run the installer and open the lightweight suite on your PC or Mac.
- 3. Open Your Files: Easily open your existing Microsoft Word, Excel, or PowerPoint documents and start collaborating seamlessly.

Frequently Asked Questions
Can I use out-of-the-box JSON to highlight changed columns in SharePoint?
No, standard SharePoint column formatting JSON does not support referencing previous version data to conditionally highlight columns that have changed.
How do I enable version history in a SharePoint list?
Go to List Settings, select 'Versioning settings', and choose 'Create a version each time you edit an item in this list' to ensure all modifications are recorded.
How can I reset column formatting in SharePoint?
Click on the column header in your list, go to 'Column settings', select 'Format this column', and clear the JSON code or simply click 'Remove formatting' to restore the default view.




