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
1399 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
hi all, I think the xmas break may have dissolved my Appian knowledg
jdegraaf
over 10 years ago
hi all,
I think the xmas break may have dissolved my Appian knowledge; I can't seem to use the filter function anymore.
I'm trying to filter a text array, with value from a different text array. Sounds simple, but i can't get it to work.
For instance, to filter the values from array {mouse;dog;monkey;cat} that equal any item in the array {dog;cat} I'm trying to use the filter function:
=filter(fn!like,pv!allAnimals,ri!animalsToKeep)
This function however returns only the dog.
(note, in real life the first array here is a CDT, and i'll be filtering on only one (text) element of this cdt)
Do you guys have any idea what i'm doing wrong?
Thanks :)...
OriginalPostID-94692
OriginalPostID-94692
Discussion posts and replies are publicly visible
0
priyaj
over 10 years ago
Hi,
If you are trying to get equal values from array1 and array2;
you can use intersection function.
Here is the link :
forum.appian.com/.../Set_Functions
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jdegraaf
over 10 years ago
thanks for that, but are you sure that works when one of the arrays is part of a CDT?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
priyaj
over 10 years ago
Yes, it will work with CDT elements.
Please make sure that data types of both arrays should be same.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel