Hello Komal,
Welcome to the Microsoft Community!
I’m here to help you to compare Excel versions and post differences to a channel, it has some prerequisites:
Storage: Store both file versions in SharePoint/OneDrive for Business (version history enabled)
Permissions: Power Automate with Excel/SharePoint connectors
Excel Format: Structured data (tables preferred) with unique row identifiers
2. Power Automate Workflow
Action 1: Trigger
When a file is modified (SharePoint)
Set to monitor your Excel file's folder
Action 2: Get File Versions
Get file version history
- File identifier: Current file ID
- Limit: 2 (current + previous version)
Action 3: Extract Data
- List rows present in a table (Current version)
- List rows present in a table (Previous version)
- Use the version-id from Action 2
Action 4: Compare Data
Filter array (to find new/modified rows):
{
"value": "@{body('Get_rows_-_Current_Version')}",
"where": "@not(contains(body('Get_rows_-_Previous_Version'), item()))"
}
Action 5: Format Output
Create HTML table from filtered differences
Style with color-coding (red=removed, green=added)
Action 6: Post Results
Post adaptive card to Teams channel
- Include:
- Timestamp of changes
- File name
- HTML table of differences
- Direct link to file
3. Key Optimization Tips
- Delta Tracking: Use Modified timestamps to only check recent changes
- Error Handling: Add a condition to check if versions exist
- Scheduled Runs: Trigger daily via Recurrence action
Note: Alternative for Non-Table Data if using raw ranges
- Export both versions to CSV
- Use 'Data Operations - Join' to compare
- Apply 'Filter array' on mismatched columns
Implementation Time: ~20-30 mins
Maintenance: Runs autonomously after setup
References:
Let me know if it works. Feel free to ask me anything you need!
Best regards,
Ryan-N-MSFT | Microsoft Community Support Specialist