Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Bill Bonnett SN
ServiceNow Employee

Symptoms

ATF fails when using a choice list to populate a Lookup List field requiring a Reference Qualifier

 

Diagnosis

ATF tests do not allow the use of reference qualifiers to filter items from a table, at least not until the Washington iteration. As an example, the test needs to use a dropdown (choice) field to populate another dropdown (choice) field, let's say, select an Office that then populates their list of Applications into a Lookup List. If you're using a table with a lot of entries like the Choice List Table to populate the second field, you won't be able to use the ATF unless your items appear within the first 2,000 entries. Most likely, the test will not be able to identify those applications, and the test fails.

 

Solution

In your form, record producer, portal page, etc. do not use the Lookup List field. Convert the Lookup List field to a Reference field and use the condition to populate the field.

Comments
PranjalSrvst
Tera Contributor

@Bill Bonnett SN 

You can increase the timeout for the step in which you are set the field value, and also you can seggregate the step for example in first step you can set the value to Office  and in the next step you can set the another field value to the application

Version history
Last update:
‎04-05-2023 07:24 AM
Updated by:
Contributors