Edit behavior of "Request For" in catalog item

JérômeM
Tera Contributor

Hello
I have a need in a portal catalog item to filter the users possible to be selected in the "Request For".
Does anyone have an idea on how I can achieve this ?
I want to only return users from a specific company and not the full list.
Thanks
Jérôme

JrmeM_0-1743084401168.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@JérômeM 

simply update the query in this property -> glide.sc.request_for.query

I updated it with query and it has only 1 user

AnkurBawiskar_0-1743086884271.png

 

AnkurBawiskar_1-1743086897039.png

 

Output: I am able to select only that user, so the filter got applied

 

AnkurBawiskar_2-1743087018898.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

12 REPLIES 12

Rohit  Singh
Mega Sage

Hi @JérômeM ,

You can go to that variable and with the help of condition you can limit the number of users in your reference variable pointing to sys_user table.

 

Refer below snip:

 

RohitSingh_0-1743084935655.png

RohitSingh_1-1743085061108.png

RohitSingh_2-1743085101989.png

 

 

 

 

 

If my response helped, please hit the Thumb Icon and accept the solution so that it benefits future readers.

 

Regards,
Rohit

The problem is that I don't find that variable in my catalog item. It seems to be a default thing from all the items ... Do you know if it something more global to edit ?

Hi @JérômeM ,

 

May be there is a variable set and in that variable set Requested For variable is declared. 

 

Please go to Maintain item and search for your Catalog item and then share screenshot. 

 

You can also refer my first response where I have added snip.

 

If my response helped, please hit the Thumb Icon and accept the solution so that it benefits future readers.

 

Regards,
Rohit

 

 

This is not a variable I defined.
This is when clicking on submit that this popup appears.
I suspect it is something more global.
See attached :

JrmeM_0-1743085731468.png