Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Selecting single record from List Collector

Abbas_Ahamed
Tera Contributor

Hi @Ankur Bawiskar,

 

I hope you are doing well. I have a question about catalog variables. I created a list collector for available software, and I want all available software to be shown in the available list. When I select multiple records, I want to be able to choose only one software in the selected list. How can I set this up? I already wrote an "onchange" client script, but it isn't working as expected.

 

Screenshot:

Abbas_Ahamed_0-1762343493047.png

Abbas_Ahamed_1-1762343537588.png

Thanks,

Abbas

2 ACCEPTED SOLUTIONS

@Abbas_Ahamed 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

Hi @Abbas_Ahamed 

 

Hope my answer helpful.

*************************************************************************************************************
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]

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

View solution in original post

7 REPLIES 7

Hi @Abbas_Ahamed 

That would be technical debt and also a violation of the core functionality of the List Collector. It’s better to use a Reference type, which is similar to a list but allows selecting one record at a time.

*************************************************************************************************************
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]

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

@Abbas_Ahamed 

what's the challenge is using Reference type variable.

I don't think this is a valid business requirement.

Please discuss this with your customer and inform

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@Abbas_Ahamed 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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