Data lookup definition not working onchange

Kiranmai_KVL
Kilo Sage

There is a requirement to set a field based on data definition lookup (similar to priority) but as below 

Based on A & B , derive C.

Based on X & Y, derive Z.

And based on C & Z, set the final value in field K.

We created on lookup rules for all the combinations. However  when changing the values of A& B / X & Y, values C & Z is not deriving as expected.. This is affecting the final value in field K. However this issue is intermittent.   

5 REPLIES 5

Saurav11
Kilo Patron
Kilo Patron
Why not wite a onchnange client script instead?

Usually for data lookup, we dont write on change client script. I have already marked 'Run on form change, run on insert , run on update' to true in the data lookup definition.

Did you manage to fix this? I'm running into the same problem on my UR implementation..

Allen Andreas
Administrator
Administrator

Hello,

You'd create the definition, tables (extended from correct table), and set your matcher and setter field definitions, ensuring you've followed the guidelines as mentioned in the documentation: https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/field-administration...

Please share what you've done if you're still having issues.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!