Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Answered

How to remove duplicated item from an array variable?

(0) ShareShare
ReportReport
Posted on 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,713 Most Valuable Professional on at
    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

🌸 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…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Pablo Roldan Profile Picture

Pablo Roldan 27

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 25

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard