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
7 replies
Subscribers
8 subscribers
Views
2494 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hi to everyone, there is a function in Appian that let me get the username
marcoc200
over 10 years ago
Hi to everyone,
there is a function in Appian that let me get the username for a user starting from his Name Surname. I explain better, i have a cdt with a field (Name) in which i save the name and the surname of the user (for example Marco Cuva), I want to get the username in appian associated to that user and using the user to get his email.
PS: We use Appian 7.6
Thanks
OriginalPostID-138678
OriginalPostID-138678
Discussion posts and replies are publicly visible
0
Sathya Srinivasan
Appian Employee
over 10 years ago
APN_displayUser() function available as part of Appian common objects
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Steven Miccile
Appian Employee
over 10 years ago
I do not know of a function that searches profile fields as you describe. Rather than saving the first and last name of a user into a cdt, you should be saving the username in the cdt and get those profile fields as needed using the user() function on the username saved.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 10 years ago
Searching for name and surname is dangerous because they are not unique. You can have several users with the same name und surname.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 10 years ago
There's a shared component that will do exactly as you require:
forum.appian.com/.../summary
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 10 years ago
Thanks Tim. I noticed compatibility is listed as 7.0 - is anyone using this on a higher version? I would like to use this on 7.3 if possible to aid in locating duplicate user accounts (with different user IDs after migrations, etc).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 10 years ago
I've used it on all versions up to 7.5 without issue
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 10 years ago
Thanks - just dropped it into 7.3 and no issues.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel