Hello friends,
I am configuring a Typeahead field with User as reference object. I want to pull users whose Primary Role = X or Secondary Role= X. I see in the filter, I am able to pull users with Primary role=X using below
roleID=X
roleID_Mod=in
trying how do I pull those with Secondary role=X.
Appreciate any support.
Thanks
Views
Replies
Total Likes
I can't figure out other/secondary job role and not seeing it in API Explorer. This is more roundabout, but you could have a column in your report that just shows all roles assigned and then you could use the in-report search to find the roles you're looking for? This would be the text mode for that column:
displayname=All Roles listdelimiter=<p> listmethod=nested(userRoles).lists type=iterate valuefield=role:name valueformat=HTML
Views
Replies
Total Likes
Did some digging and not sure if this is what you're after but may be helpful:
assignedTo and roleID) are reserved for the primary assignment only; collections are what you use when you need to include secondary assignments as well.
Views
Replies
Total Likes
you'd pull in secondary roles using a collection. You can see in the API explorer in the collection tab, a collection of userRoles and when you click into that you can see the roleID in the userRole object. In your filter, it might look something like this:
userRoles:roleID=X userRoles:roleID_Mod=in
as a best practice I would also filter out the deactivated users.
Views
Replies
Total Likes