ATF field validation of Variable of "choice" type

pranjalsrvs
Tera Contributor

I have a requirement to validate a variable of "Choice" type on Record producer and ensures all the options should be validate, how to achieve this requirement through Servicenow ATF steps. Kindly add steps to validate. 

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @pranjalsrvs There’s no direct way to do this, unless you manually select and set each value one by one.
You could say it’s a limitation of the platform.

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

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

Ankur Bawiskar
Tera Patron
Tera Patron

@pranjalsrvs 

what do you mean -> ensure all the options should be validate?

are you thinking to check if all the choices are available or not in that variable?

If yes then this is not possible.

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

@Ankur Bawiskar 

I have a variable whose choices are stored in the "question _choice" table. Now I want to validate this variable on the service portal and all its choices... Is this possible?

@pranjalsrvs 

You can use Record Query step and validate those.

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