Comparing groups using union

Certified Associate Developer

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))

So the union arguments are of different types? But the documentation explicitly states for both methods that the type is 'list of group'. Is the documentation wrong? How do I convert 'Any type' to list of group?
When I test the arguments individually, the raw outputs seem the same to me.
Thank you in advance.

  Discussion posts and replies are publicly visible