Advanced Reference Qualifier question

kedler
Kilo Guru

I need to create an Advanced Reference Qualifier. I have service catalog item that asks to select which user is requesting this item (requester field). Once that user is selected, they must select their computer (from cmdb_ci_computer). I want to use the advanced reference qualifier to show only computers assigned to the user. So I need to create a new advanced reference qualifier for the 'user_pc' variable that will be able to use the 'requester'. Can anyone help me with how to do this?

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

I think Mike is close, but missing the actual variable value. 

 

javascript:'assigned_to="+current.variables.requested_for

 

 

View solution in original post

5 REPLIES 5

I think Chuck is close, but might be missing the variable attribute. If you're doing this on a Service Catalog variable then you also need to add the variable attributes ref_qual_elements=requested_for or else the value of this variable will not be available to the reference qualifier. See https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/script/server_scripting/concept/c_RefQualifiersForSvcCatVariables.html