We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

servicenow reference field empty in list view but showing on record

irfanhabeeb
Giga Contributor

I have a custom created table u_cmdb_ci_api_partner which is a child of cmdb_ci table . And a 'u_partner_name' field referencing core_company table . Also there is before insert & update BR to populate partner app name from partner name field . 

 

BR 

(function executeRule(current, previous /*null when async*/) {

    if (current.u_partner_name || current.u_api_master) {

        // Get Partner App Name from Company
        if (current.u_partner_name) {
            var company = new GlideRecord('core_company');
            if (company.get(current.u_partner_name)) {
                gs.log("partner name"+current.u_partner_name);
                current.u_partner_app_name = company.u_partner_app_name;
            }
        }

        // Set Name field
        current.name = current.u_partner_name.getDisplayValue() + " " +
                       current.u_api_master.getDisplayValue();
    }

})(current, previous);
 

To check the Br when i tried to edit partner name  from list it is not saving and showing as empty. when go to the certain record and explictly save a value it is hsown on the record form and value(partner app name ) is getting populated. Still in the list view partner name is empty .

 



Action Result
Formshows value
Savelooks saved
List viewempty
List editclears value
3 REPLIES 3

Tanushree Maiti
Giga Sage

Hi @irfanhabeeb 

 

For debugging, you can turn off Next experience from your user preference and add field watcher to check which rule/script is running on that specific reference field. Validate those rule/script

 

Also you can refer this KB article which is on same topic:  "reference field on a list is showing empty value but the form shows correct value."

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0758245

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

irfanhabeeb
Giga Contributor

Hi @Tanushree Maiti ,

Thank you for the response . Just checking if you mean turning of next experience from user preferences=>notifications=>delivery channels=>next experience. I can only find this in user preferences.

I created a new system property 'glide.ui.polaris.on_off_user_pref_enabled = true' and still cant see the next experience turn off button . is there any other way to turn on  field watcher?

Hi @irfanhabeeb 

 

For this you have to enable glide.ui.polaris.on_off_user_pref_enabled. after that you can see under user preference-> User experience->Next experience toggle is available.

 

Note: make sure you are testing it in sandbox/lower non-prod. Once debugging done->revert back changes and move to Next Experience again. 

 

 

Screenshot 2026-03-10 130730.jpg

 

for field watcher 

Open record ->right click on field and click on watch

Screenshot 2026-03-10 131021.jpg

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: