The CreatorCon Call for Content is officially open! Get started here.

Script Include not working in reference qualifier

aagman4
Tera Contributor

I am trying to update the field with a Number using reference qualifier in dictionary but its not working(see the screenshot attached). It's not showing the info message as well.

 

Pls help me on this.

14 REPLIES 14

aagman4
Tera Contributor

Now, i am using this

 

aagman4_0-1690964884404.png

 

aagman4_1-1690964916752.png

 

No it's not working because an advanced reference qualifier expects some input to be used to filter records.

Think of it as you want it to get records in some form of encoded query.

So the script include is working fine, but the calling source (reference qualifier) expects some string result that can be used in a query.
Something like

active=true^installed=1 etc
or perhaps something like

sys_idINa,b,c,d,e,f

So the initial issue is in your statement "I am trying to update the field with a Number using reference qualifier..."
Reference qualifiers aren't meant to be used like that. Updating records and such.

Please elaborate more on your requirement, before we dig into possible solutions.

aagman4
Tera Contributor

I wanted script include to return a Number from table - sn_risk_advanced_risk_assessment_instance like RASMT00100057 and it will populate in the field where I have defined reference qualifier on table - sn_risk_advanced_risk_assessment_instance.

Sagar Pagar
Tera Patron

Hi @aagman4,

 

What is your exact requirements?

 

Note: In reference qualifiers, Script Include restricts records, not updates them.

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow

I wanted to filter a record from a table and update the number of that record in a field in a form. Can it be done?