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
6 replies
Subscribers
8 subscribers
Views
2486 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I have observed unexpected behavior for isusernametaken function. When we pass a
chetany
A Score Level 1
over 9 years ago
I have observed unexpected behavior for isusernametaken function. When we pass an empty string to it, it returns true.
As per my understanding this should not be the case. isusernametaken should return true for only the users which exist (activated/deactivated) in the system. This was observed on Appian 7.11
fn!isusernametaken("") - true
OriginalPostID-205763
OriginalPostID-205763
Discussion posts and replies are publicly visible
Parents
0
Stefan Helzle
A Score Level 3
over 9 years ago
I think this will not change as the behaviour of some older Appian functions is not consistent in some edge cases but running systems depend on this. Just try "=not(null)" and "=if(null, true, false)". So my suggestion is to wrap isusernametaken() this in an expression which does some additional checks.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Stefan Helzle
A Score Level 3
over 9 years ago
I think this will not change as the behaviour of some older Appian functions is not consistent in some edge cases but running systems depend on this. Just try "=not(null)" and "=if(null, true, false)". So my suggestion is to wrap isusernametaken() this in an expression which does some additional checks.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data