Data lookup definition not working onchange
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2022 12:39 PM
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.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2022 01:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2022 01:38 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2022 02:01 AM
Did you manage to fix this? I'm running into the same problem on my UR implementation..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2022 01:43 PM
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!