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 / Save records without d...
Power Automate
Unanswered

Save records without duplicates

(0) ShareShare
ReportReport
Posted on by 2

Hi, 

 

I have a sharepoint list called "Records". I want to save new records from excel. I used List rows present in a table, I want to save records, without duplicates. 

 

In records there is a column named "IDPart". In excel I have the same column IDPart, I want to save the records, but if a IDPart already exist in Records skip. 

 

 

 

Categories:
  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @LuisDataReady ,

    I did a test for your reference.

    In my scenario:
    My SharePoint List:

    vyetonggumsft_1-1713424049469.png

    My Excel Table:

    vyetonggumsft_0-1713424007810.png

    My Flow:

    vyetonggumsft_0-1713424280586.png

    vyetonggumsft_1-1713424359140.png

     

    IDPart eq '@{items('Apply_to_each')?['IDPart']}'
    length(outputs('Get_items')?['body/value'])

     

    The Result:

    vyetonggumsft_2-1713424119803.png

    Best Regards,

    Sunshine Gu

  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @LuisDataReady 

     

    Here are the steps, assuming you already have "Get items" action that contains the list items:

     

    After "List rows present in a table", add "Apply to each" action and pass the output value object of SharePoint get items action as its input. Within apply to each block, add "Filter array" action & pass the output value object from "List rows present in a table" action as its input & in filter query compare the ID with each list item in iteration. Next, add "Condition" action to determine the length of output body return by filter array action. using expression, check if length of output body of filter array is zero and add a row in excel in the "Yes" block.

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

      

  • LuisDataReady Profile Picture
    2 on at

    Hi, 

    I tested the flow, but it stills duplicate the items. 

     

    LuisDataReady_0-1713450316585.png

     

     

    IDPart duplicates. When I see the flow is because the condition is true and create the item again

    length(outputs('Get_items')?['body/value'])

     

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @LuisDataReady ,

    I have observed that your IDPart is a Number column in the SharePoint list.

    What type of column is the IDPart in your excel list? Is it also a Number column?
    As a reminder, in Flow's equal, the data types on both sides must be the same to be equal.

    vyetonggumsft_0-1713489013901.png

    Best Regards,

    Sunshine Gu

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 Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard