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
4 replies
Subscribers
7 subscribers
Views
2025 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
How can I find the integer value of the type List of Username? When I do the fo
erickp
over 9 years ago
How can I find the integer value of the type List of Username? When I do the following, I get an error message: tointeger('type!{
www.appian.com/.../2009}List
of Username') but when I do tointeger('type!{
www.appian.com/.../2009}User')
, it works fine returning 4.
What is the correct type for a list of users so that the above statement work?
OriginalPostID-219331
OriginalPostID-219331
Discussion posts and replies are publicly visible
0
Josh
Certified Lead Developer
over 9 years ago
In this case it would be tointeger('type!{
www.appian.com/.../2009}User
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jacob Cohen - Project Leader - Macedon Technologies
over 9 years ago
Erick, another option would be to grab the type of an actual list of values, like this:
typeof({touser(loggedInUser()), touser(loggedInUser())})
Both suggestions result in the same value.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
Even we don't need a logged in user. fn!typeof(fn!touser({})) for list of users and fn!typeof(fn!touser(null)) for single user is enough when it comes to usage of fn!touser(). :-)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
erickp
over 9 years ago
Josh, thank you! Thank you guys.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel