Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 5fEZOdG0Ij9BKqJFGsOgDz
Copilot Studio - General
Answered

How to remove duplicated item from an array variable?

Like (0) ShareShare
ReportReport
Posted on 3 Apr 2024 11:32:30 by

With PA I get rows from an excel and store them in an array variable.
Now I need to obtain the array without duplicated items (I want just one occurrency of items), is there a simple way to do that?

Categories:
  • Verified answer
    Expiscornovus Profile Picture
    31,728 Most Valuable Professional on 03 Apr 2024 at 11:44:26
    Re: How to remove duplicated item from an array variable?

    Hi @theMac,

     

    You can use a union function for this.

     

    Below is an example

     

    union(variables('ArrayVar'),variables('ArrayVar'))

     

    unionfunction.png

     

    Below would be the result

     

    testresult_union.png

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 66

#2
Pablo Roldan Profile Picture

Pablo Roldan 55

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard
Loading started