Skip to main content
July 15, 2022
Question

Error:The passed parameter(s) are of the wrong type. Received the type List of User or Group.

  • July 15, 2022
  • 5 replies
  • 0 views

a!gridColumn(
label: "Assignees",
sortField: "c4",
value:group(fv!row.c4, "groupName")
),

Using this code in a gridfield.

Getting the data from queryprocessanalytics to populate a grid. Field c4 contains the group number. i am trying to get the corresponding group name. Pls help.

    5 replies

    harshitb6843
    July 15, 2022

    It looks like the c4 is of type User or Group. And the group function only works with Group type. 

    July 15, 2022

    How to display the Group Name in place of Group ID in task report in interface?

    harshitb6843
    July 15, 2022

    The code you have attached is being used for filtering whereas the last line says that you want to show the group name instead of the group number. 

    Both of them are separate things. I am suggesting an approach below which you can try. 

    • Try to filter on the ID itself. Do not cast it to name. 
    • When consuming the output, then use the runtimetypeof() function to determine if it is a group or user and then use the relevant function.