How can we add a field in Catalog item containing 300+ choice list

divyal09
Tera Contributor

How can we add a field in Catalog item containing 300+ choice list containing groups name, so that user can select as many options they want from choice list and after selecting the options user should get added to all those selected groups. Addition of the user to the groups should be automated.

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @divyal09 

 

Better to create a Variable / Variable Set

Variable type = List

Reference to Group table

 

In Flow, get the variables, and then 

add user n that group.

 

https://www.servicenow.com/community/itsm-forum/how-to-add-user-to-group-sys-user-group-using-flow-d...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Can't we implement it using workflow? We need to add the approvals to the request as well.

Yes, but why not. You can do it via WF , but good is Flow Designer. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Mark Manders
Mega Patron

You don't.

You are allowing users to choose from hundreds of groups to just let themselves added? This is a security risk if I ever saw one. Groups are used for assigning, reading records, access to certain things and you are allowing people to just say 'in my opinion I should be able to have access to this'?

Just an example: a catalog item only available for the 'infra'-group to wipe a certain server. User with no knowledge of these servers adds himself to the group, finds the catalog item, clicks on it and a server is completely wiped. How can this requirement even be considered for development?


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