Hello,
I have an application with users that have multiple groups that describe their roles and teams. I have a group type that specifically targets which team a person is on. I have a pointer to that type.
I want to get a member of another role (group) from this same team automatically. Technically what I am having a problem with is the following:
union(
a!groupsByType(cons!TA1_ProjectTeamsPointer).data,
a!groupsForUser("testuser")
)
This gives me the following error:
Expression evaluation error at function 'union': Invalid types, can only act on data of the same type (Any Type, Key (Integer))
Discussion posts and replies are publicly visible
Just wrap both of the parameters in togroup()
union( togroup( a!groupsByType(cons!TA1_ProjectTeamsPointer).data ), togroup(a!groupsForUser("testuser")) )
Thank you. Regarding my question about the type, is documentation missing about the type of the result of these two methods? Because in the documentation it seems to me both are of the same type. Links:https://docs.appian.com/suite/help/23.4/fnc_people_a_groupsbytype.html https://docs.appian.com/suite/help/23.4/fnc_people_a_groupsforuser.html
Just tried and it looks like the output for both of these functions are different. One gives a list of variants vs the other gives a list of groups.