Union function in Power Automate
In this exercise, we will learn how to use the union function of power automate. The union function is used to combine the two arrays and returns the distinct values only in the resultant array by removing the duplicates.
So, we can use the union function to get the unique values from the array.
Let’s create an array variable with name FirstArray, as shown in the image below.
Use the dynamic expression given below to get the unique values from the array.
Power Automate
union(variables('FirstArray'),variables('FirstArray'))
In order to see the output we are using the Compose action of power automate.
We can see the output in the compose action that the duplicates are removed.