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
4 replies
Subscribers
7 subscribers
Views
1417 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Input: {a,a,b,c,d,d,e} Required Output: {a,b,c,d} Is there any e
aayusha
Certified Senior Developer
over 10 years ago
Input: {a,a,b,c,d,d,e}
Required Output: {a,b,c,d}
Is there any existing function to complete the above requirement?
I am using v6.6
Thanks...
OriginalPostID-99680
OriginalPostID-99680
Discussion posts and replies are publicly visible
0
aayusha
Certified Senior Developer
over 10 years ago
Required Output: {a,b,c,d,e}
Unique ones.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vimalkumars
Certified Lead Developer
over 10 years ago
Hi,
Following expression will help you in this case
union({a,a,b,c,d,d,e},{a,a,b,c,d,d,e}).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 10 years ago
I also use the Union method - however since I needed to remove duplicates in several different places, i wrote a custom expression rule which takes one input (array) and passes out the same array with duplicates removed. The internals of the expression rule is just the aforementioned Union(), though it could theoretically be replaced with something else in the future.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aayusha
Certified Senior Developer
over 10 years ago
Thanks.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel