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
5 replies
Subscribers
11 subscribers
Views
2341 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Data and Records
I have a process backed record and trying to get a group name on the record dash
simranjits
over 10 years ago
I have a process backed record and trying to get a group name on the record dashboard.
I tried using various combinations to get the group name on the dashboard but either it gives an error or gives group name as an integer.
toString(rf!XXX) printed an integer while group(rf!XXX,"groupName") gave the following error:
Error evaluating function 'group' : The passed parameter(s) are of the wrong type.
where XXX is a process variable of the type group.
Please suggest how to get the group name on the dashboard....
OriginalPostID-99144
OriginalPostID-99144
Discussion posts and replies are publicly visible
0
Sathya Srinivasan
Appian Employee
over 10 years ago
What is the value of rf!XXX?? Is this a number or something like [Group nn]
Start with checking the type.
Once you identify the pv type, based on what it is, you can use one of the toXXX() functions to convert it to the right type.
If its a number and if the number -does- represent the actual group, you should be able to use it in the group function - use toGroup() to cast the number to group
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
simranjits
over 10 years ago
rf!XXX is a process variable of type group. I used this with togroup(rf!XXX), group(rf!XXX,"groupName") but didnt get the group name on the record dashboard.
Then i extracted the group id in the process model itself abd stored it in a variable of type number(integer). Passed this to toGroup(GroupId) and group(GroupId,"processName"). Even this didnt work.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
revat.anandsongkit
Appian Employee
over 10 years ago
I would recommend testing the expression in the expression editor. Get the groupID from the process and in the expression editor, firstly make sure the group exists. Once you've verified the group exists, you should be able to retrieve the group name using the group(ri!groupID, "groupName") function. Hope this helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 10 years ago
Also check the permissions on the group itself and make sure your user has permission to view it
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Kartik
Certified Lead Developer
over 10 years ago
You can also try using the people functions plug-in to get the name(s) of the group(s). Specifically the getgroupnames function which accepts the group as a parameter and returns the name,
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel