Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
3 replies
Subscribers
7 subscribers
Views
10009 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Is there any expression function to retrieve unique or distinct elements from a
indrajita
Certified Associate Developer
over 10 years ago
Is there any expression function to retrieve unique or distinct elements from a string/numeric array?
For example : main array = { 20, 10, 30, 10, 30,30, 20, 60, 20}
resultant array should have the value as {20,10,30,60}
Is there a way to achieve this using available expressions?...
OriginalPostID-91563
OriginalPostID-91563
Discussion posts and replies are publicly visible
Top Replies
sikhivahans
over 10 years ago
+1
fn!union({ 20, 10, 30, 10, 30,30, 20, 60, 20},{ 20, 10, 30, 10, 30,30, 20, 60, 20})
0
sikhivahans
over 10 years ago
fn!union({ 20, 10, 30, 10, 30,30, 20, 60, 20},{ 20, 10, 30, 10, 30,30, 20, 60, 20})
Cancel
Vote Up
+1
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jorge Sanchez
Appian Employee
over 10 years ago
Or simply put: union the array with itself.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
indrajita
Certified Associate Developer
over 10 years ago
thank you , its working the way I wanted.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel