web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to remove duplicat...
Power Automate
Unanswered

How to remove duplicates from an array?

(0) ShareShare
ReportReport
Posted on by 2,295

Can someone please explain me how to remove duplicates from an array?

 

WebPortal_0-1605908908917.png

I've tried a million combinations of the following expression without any luck:

union(variables('Users'),variables('Users'))

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,422 Moderator on at
    Re: How to remove duplicates from an array?

    Your expression is correct - are you sure your arrays are formatted in the same way?

  • WebPortal Profile Picture
    2,295 on at
    Re: How to remove duplicates from an array?

    I've given up trying to understand what was wrong, so I've just added a new Compose step with union... and fed the subsequent steps from there, and it worked.

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard