Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
VTB: Add Primary Assignee field doesn't honor advanced reference qualifier (current refers an empty/undefined GlideRecord object) - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • VTB: Add Primary Assignee field doesn't honor advanced reference qualifier (current refers an empty/undefined GlideRecord object)
KB0788297

VTB: Add Primary Assignee field doesn't honor advanced reference qualifier (current refers an empty/undefined GlideRecord object)


735 Views Last updated : May 9, 2024 public Copy Permalink
KB Summary by Now Assist

Description

VTB: Add Primary Assignee field doesn't honor advanced reference qualifier (current refers an empty GlideRecord object)


Steps to Reproduce

1. Open your London instance.
2. Create a new script include via System UI > Script Includes > New, with the following details for example:
----- Name: TestInclude
----- Script:
var TestInclude = Class.create();
TestInclude.prototype = {
initialize: function() {
},
testFunction: function(){
gs.log("Triggered " + current, "Nishit");
},
type: 'TestInclude'
};
3. Open the "assigned_to" dictionary field (defined on "task" table).
4. Switch to "Advanced view" if needed.

#### Scenario 1 ####:
5. Under Reference Specification form section, update the following:
----- Use reference qualifer: Advanced
----- Reference qual: javascript:gs.log("Triggered " + current.sys_id, "AdvancedRefTrigger");
#### End of Scenario 1 ####

#### Scenario 2 ####:
5. Under Reference Specification form section, update the following:
----- Use reference qualifer: Advanced
----- Reference qual: javascript:new TestInclude().testFunction()
#### End of Scenario 2 ####

6. Open incident list and filter with [Assigned To] [is empty].
7. Right-click on "State" field and click "Show Visual Task Board" => Will create a new board.
8. Click one of the cards => Pop-up opens => Click "Add Primary Assignee".
9. Check server logs (with Source field filter being "AdvancedRefTrigger")

Actual: Returns "undefined"
Expected: Shall return sys_id of the record.

Works fine on the normal form view of the respective incident record if checked.

Workaround

After carefully considering the severity and frequency of the issue, and risk of attempting a fix, it has been decided not to address this issue. We do not make this decision lightly, and we apologize for any inconvenience. If you have any questions regarding this problem, contact ServiceNow Customer Support.


Related Problem: PRB1313555

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.