Passing variables from reference qualifier - service portal

Snow Tomcal
Tera Expert

Hello

I am trying to filter a reference field (cmdb_ci) with an advanced reference qualifier, which calls a script include. The script filters according to the variable `u_environment`.

 

when I tried it with the incident module it worked just fine, but when I used it in the  incident in the service portal (record producer), it didn’t pass the variables, I also tried using current.variables.u_environmet inside the script include, but to no avail.

 

the reference qualifier is as follows:

javascript:new CIremove().removeRedundantCI(current.variables.u_environment);

 

Does anyone know why it might not work?

We are working in a closed environment so unfortunately I can’t provide any screenshots.

thank you!

 

 

5 REPLIES 5

RaghavSh
Kilo Patron

what type of field is u_environment in incident table? and what type of variable is "u_environment" on record producer.

If the field on form and variable type are same it should work.


Raghav
MVP 2023
LinkedIn

Snow Tomcal
Tera Expert

The type of field in the incident table is choice and the type of variable in the record producer is select box, but their function is pretty much the same.

 

@Snow Tomcal make sure the backend value of choices in field and variable are same.


Raghav
MVP 2023
LinkedIn

The values are the same in both