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 / Remove Duplicates from...
Power Automate
Unanswered

Remove Duplicates from JSON

(0) ShareShare
ReportReport
Posted on by 297

I am pulling data in with a custom connector and Parsing the data with JSON.  There are a number of fields that I need to keep like "Name", "ID", "Start Date" and "End Date".   I need to remove any duplicate ID's only leaving one record for each ID.    I know how to remove duplicates for a string of emails but not sure how to remove records when just comparing one of the fields. 

 

Any Help would be great,

Thank you

Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at

    @spsolutionsgrp see if this helps

     

    https://thatapiguy.tech/2020/04/04/get-distinct-records-using-the-union-expression-in-power-automate/

     

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • spsolutionsgrp Profile Picture
    297 on at

    I have used that method in the past to remove duplicate emails.   The difference is that I have a record (multiple fields) and even though I can use one field to determine the duplication I need to keep the entire record.  Can you show an example similar to my example?

  • jinivthakkar Profile Picture
    4,187 on at

    @spsolutionsgrp not sure how that can be done 😞 

  • spsolutionsgrp Profile Picture
    297 on at

    Okay, thanks for trying.

  • takolota1 Profile Picture
    4,980 Moderator on at

    @spsolutionsgrp @jinivthakkar 

     

    New template that takes in a JSON array & selection of columns and outputs a JSON array where any records with duplicates in the selected columns are removed:

     https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Find-and-Remove-Duplicates/m-p/2191403#M1611

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 378

#2
Valantis Profile Picture

Valantis 329

#3
David_MA Profile Picture

David_MA 283 Super User 2026 Season 1

Last 30 days Overall leaderboard