Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
Replies
11 replies
Answers
3 answers
Subscribers
9 subscribers
Views
9380 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi, i am trying to fetch user/group name from a group name constant which c
himanshug
over 10 years ago
Hi,
i am trying to fetch user/group name from a group name constant which can accept multiple values .On trying to fetching using the index number , i am just getting the first name , it is not reading the space . Could anybody help me with this ? ...
OriginalPostID-79888
OriginalPostID-79888
Discussion posts and replies are publicly visible
Parents
0
shwetad
over 5 years ago
Hi Himanshu,
Please try below code:
if(runtimetypeof(cons!USER_OR_GROUP[2])=4,
concat(user(touser(cons!USER_OR_GROUP[1]),"firstName"),
" ",
user(touser(cons!USER_OR_GROUP[2]),"lastName")),
group(togroup(cons!USER_OR_GROUP[2]),"groupName"))
Here, the constant USER_OR_GROUP contains both user and groups, and its data type is user or group.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Reply
0
shwetad
over 5 years ago
Hi Himanshu,
Please try below code:
if(runtimetypeof(cons!USER_OR_GROUP[2])=4,
concat(user(touser(cons!USER_OR_GROUP[1]),"firstName"),
" ",
user(touser(cons!USER_OR_GROUP[2]),"lastName")),
group(togroup(cons!USER_OR_GROUP[2]),"groupName"))
Here, the constant USER_OR_GROUP contains both user and groups, and its data type is user or group.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Children
No Data