- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2016 09:46 AM
When changing a record producer field that is a reference to a Lookup Select Box the html it generates sets the options value attribute to the String value not the sys_id. When the request is saved to my table the reference is then broken. I can't seem to find anywhere I can tell the field to populate the sys_id instead of string value. How do I set the Lookup Select Box to have the sys_id in the value instead of the string value? I am running Eureka but have tried in Fuji on my personal instance with the same result. If I leave it as just a reference field it works as expected.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2016 09:58 AM
What field from the referenced table have you set as the Lookup Value field. The Lookup Value field should be the sys_id of the referenced table in this case.
Reference: Variable Types - ServiceNow Wiki
- Hardik Vora
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2020 03:57 AM
Got the same problem here.
and once filled in I get this. interestingly, the display Value is blank
- {
- "name": "tenant_auto_update_state",
- "label": "Auto Update State",
- "value": "Disabled",
- "display_value": "",
- "item_order": "15",
- "type": "18",
- "type_name": "Lookup Select Box",
- "var_order": "1600",
- "variable_set": "8537093fdbe2d8506a71af4bd3961956",
- "variable_set_name": "CE - tenant",
- "cat_item": "",
- "cat_item_name": "",
- "workflow": "",
- "workflow_name": "",
- "lookup_reference": "u_lookup_table",
- "ref_qual": "u_active=true^u_key=ce^u_lookup_id=auto_update_state^ORDERBYu_order",
- "ref_qual_cond": "^ORDERBYapplication",
- "mandatory": "false"
- },
tried a few variations and value is always what the label says