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
9446 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
0
Dharmendra Godhani
Certified Lead Developer
over 5 years ago
Hi Himanshu,
First you need to find whether the value at an index is a group or user
To do this use runtimetypeof() function. It will return 4 if value is user and 5 if value is group.
Or you can use typename(runtimetypeof(XYZ[i])) which will return 'User' or 'Group' based on value.
If returned value is user then use user() function to fetch properties like "firstName" , "lastName"
else value would be group.
Note: use toUser() and toGroup() to convert.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<