Passing variables from reference qualifier - service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 02:44 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 12:03 AM - edited 01-10-2023 12:04 AM
@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.