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
9448 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
Sathya Srinivasan
Appian Employee
over 10 years ago
First, ensure you have defined the constant as multiple and the values are separated by a semi-colon. Secondly, use the INDEX function instead of the [] notation. This is a fail safe to avoid errors when data doesnt exist in a particular index or if the value of the array is null. Finally, when you are having a variable which is an array of User OR Group, you need to use the typeOf function to find out what type it is (for e.g. User is type 4) and once you know the datatype of the data you're retrieved, you can perform actions on it, such as fetching the first name etc.,
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Sathya Srinivasan
Appian Employee
over 10 years ago
First, ensure you have defined the constant as multiple and the values are separated by a semi-colon. Secondly, use the INDEX function instead of the [] notation. This is a fail safe to avoid errors when data doesnt exist in a particular index or if the value of the array is null. Finally, when you are having a variable which is an array of User OR Group, you need to use the typeOf function to find out what type it is (for e.g. User is type 4) and once you know the datatype of the data you're retrieved, you can perform actions on it, such as fetching the first name etc.,
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data