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
5 replies
Subscribers
8 subscribers
Views
2782 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hi, Is there a way to filter repeated values in an array and ke
mokhtarc
over 10 years ago
Hi,
Is there a way to filter repeated values in an array
and keep only one instance of the repeated value in the array for all the existing values?
Thanks...
OriginalPostID-126673
OriginalPostID-126673
Discussion posts and replies are publicly visible
Parents
0
Aleksi White
Appian Employee
over 10 years ago
If you import the Appian Common Objects Rules and Constants, there is a rule called APN_distinct() that does exactly this. But if you don't want to import that, the rule's definition itself is very simple to create:
union(ri!array, ri!array)
where ri!array is Any Type
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Aleksi White
Appian Employee
over 10 years ago
If you import the Appian Common Objects Rules and Constants, there is a rule called APN_distinct() that does exactly this. But if you don't want to import that, the rule's definition itself is very simple to create:
union(ri!array, ri!array)
where ri!array is Any Type
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data