Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

ATF field validation of Variable of "choice" type

PranjalSrvst
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

Hi @PranjalSrvst 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.

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

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

Ankur Bawiskar
Tera Patron

@PranjalSrvst 

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  ||  10x 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?

@PranjalSrvst 

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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader