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

@Snow Tomcal then there is no point it is not working as reference field and reference variable behave same.

Can you check your script include and and reference variable are in same scope.

Also after applying this reference qualifier in your reference variable, click on reference variable and check the logs immediately, it might suggest some errors.


Raghav
MVP 2023
LinkedIn