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
2638 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Findfoldersbyname() appears to search for folders that CONTAIN the string, not t
adamm
over 10 years ago
Findfoldersbyname() appears to search for folders that CONTAIN the string, not that are named the same as the input string.
We are creating folders in the system named according to an ID number that comes from an external database, to save uploaded files for our process. We have now seen an occurance where we have seen the IDs conflict due to one being a substring of the other.
To show a clear example, an old process had an ID of 123456, we then had another process show up with an ID of 3456, the second (3456) found the folder of the first.
Our function call is:
findfoldersbyname(
false,
pv!crsExceptionID_int,
cons!CAC_EXCEPTIONS_DOCUMENTS_ROOT_FOLDER,
cons!CAC_EXCEPTIONS_DOCUMENTS_ROOT_KC)
I confirmed the problem was occurring by creating a test rule and feeding it the two IDs, both of which found the same folder.
Do we need to change it out to another function (and if so, what function? When searching int he documentation I...
OriginalPostID-121810
OriginalPostID-121810
Discussion posts and replies are publicly visible
Parents
0
Mike Cichy
Appian Employee
over 10 years ago
One thing you could do, is once you have the list, pass it through a rule that will return you the index of the item that has the exact match to the search string.
The other option would be to edit the plugin code and add a new parameter for "exact" match search.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Mike Cichy
Appian Employee
over 10 years ago
One thing you could do, is once you have the list, pass it through a rule that will return you the index of the item that has the exact match to the search string.
The other option would be to edit the plugin code and add a new parameter for "exact" match search.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data