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 Automate / Simple archival tool a...
Power Automate
Suggested Answer

Simple archival tool adding duplicates

(0) ShareShare
ReportReport
Posted on by
My flow takes items from a Sharepoint list and adds them to an Excel file every 90 days, however it's adding duplicates. I'm trying to identify unique items with the unique Sharepoint ID. I believe it may be a value type mismatch, the Sharepoint ID value is listed in green whereas in Excel it's seen as a string and is in double quotes. However, changing the column in Excel to "Number" instead of Text hasn't worked. Any ideas? Thank you!
 
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    13,491 Super User 2026 Season 1 on at
    I would first get the rows from your spreadsheet and find the ID value that is the greatest number. Then, when you use the SharePoint Get items action, use a filter query to where ID gt (greater than) the highest value from the spreadsheet. This way, you will only be getting items that were added since your last run.

    If you encounter the issue with it treating the number as a string, just wrap the string value in an int expression and it will convert it to an integer. See this for more information: Convert String to Integer in Power Automate - SharePoint & Microsoft Power Platform Tutorials - SPGuides
     
    If you are not familiar with how the ID field works in SharePoint, it is the primary key within every list and document library. The number starts at 1 and increments by 1 every time a new item is added. If an item is deleted, that ID is never used again.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard