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

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
    12,925 Super User 2025 Season 2 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

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 463 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 427 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard