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 Automate - Building Flows
Unanswered

How to remove duplicates from an array?

(0) ShareShare
ReportReport
Posted on by 2,291

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'))

I have the same question (0)
  • Paulie78 Profile Picture
    8,418 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,291 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 722 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 461 Moderator

#3
developerAJ Profile Picture

developerAJ 283

Last 30 days Overall leaderboard