i have dynamic array, meaning the value and length depends on my REST API call result.
i need to make that array has unique or distinct value, meaning the value inside the array must be unique to each other.
ANy idea?
Thanks
The linked comment using union shows how but does a bit more than the original request so those that want the very simple answer to the question - how do I get the unique/distinct values from an array - all you do is union the array with itself, i.e.

and the expression in the 2nd initialise just does:
union(variables('TestArray'),variables('TestArray'))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With