Requirement is to hide assignment groups from drop down if requestor is a member of the group

sravya03
Tera Contributor

Requirement is to hide assignment groups from drop down if requestor is a member of the group in catalog item.

Example i have a ABC variable which is referenced to sys_user_group table and will have active groups in drop down.

I have a variable XYZ where we need to give user name who need access, so when person name is given on ABC drop down only group which he is not member should be visible.

ABC is a variable in multirow and XYZ is single row variable

13 REPLIES 13

Mark Manders
Mega Patron

https://www.servicenow.com/community/itsm-forum/requirement-is-to-hide-assignment-groups-from-drop-d...


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Tai Vu
Kilo Patron
Kilo Patron

Hi @sravya03 

Can you confirm that ABC is a Multiple Row Variable Set (MRVS)? and if so, please give some insight into why it was decided to be that type?

 

Cheers,

Tai Vu

sravya03
Tera Contributor

yes, because that is the requirement from client.

Hi @sravya03 

 

If there aren't any specific reasons for using MRVS, you might want to suggest to the client to consider the List Collector variable type instead. It's easier to build and maintain in the long run.

However, if they insist on using MRVS, things become a bit more complex. We'll need to use session data to store the selected Requestor and then retrieve it in the reference qualifier to build the query. Additionally, we'll need to follow the same steps again in order to filter out the selected Groups.

 

Cheers,

Tai Vu