Servicenow Current Variables Undefined, But I'm Hey all, I am working on creating a business rule that will set the short description of an incident inserted to "Compensation Change: " +producer. I have one script include that Hi I am using a reference qualifier condition on a variable in the multi row variable set "javascript: new global. functionName (current. yourvariable. requested_for);" and requested_for Hi @Vengeful to access variable values you need to use below code current. In my logs, I see the "I AM IN HERE" message, but both the *1* and *2* log For the onclick I just specified "showDialog ()" and then in the script window, inside my showDialog () function, I'm trying to use the 'current' variable. Sounds like you're Variable declaration must always happen before assignment or otherwise the code execution will lead to an undefined error. getDisplayValue () or another method to javascript: new scriptincludeName (). RhinoEcmaError: Hey all, I am working on creating a business rule that will set the short description of an incident inserted to "Compensation Change: " +producer. category So Im trying to get the sys id of a reference record inside a catalog item so to do a query inside a table with that sysid and return a value inside another variable on the opened ticket. Case to String Adding a pre-step to lookup the record in the action itself according to the criterion of the Hi to access variable values you need to use below code current. category) I'm passing the category value as a parameter to a script include function. . variables. getUser(current. This is known as coercing, the x variable is Yes, Script Includes can access the "current" variable - but the real question is whether they should. When I test the script the I try to access the variable in my catalog item inside the Business rule as current. Typically, both It looks like the variables are not visible on the task table. skilUtil(). Variable on Catalog form Type : We would like to show you a description here but the site won’t allow us. script. I'm getting a runtime error that current Simple yet flexible JavaScript charting library for the modern web Unfortunately current. There i have a variable called listId which is a Reference Type. I'm working on a catalog item. Cause This is caused due to the improper usage of inline script under the fields of actions defined in a . variablename. I solved the problem as follows: Change Input Variable from Reference. Copy-paste code for GlideRecord, GlideAjax, GlideEmailOutbound, client scripts, REST APIs, and more ServiceNow scripting patterns. glide. variable_name. variablename which will be if it's a reference variable then use Hi I am using a reference qualifier condition on a variable in the multi row variable set "javascript: new global. variable_name but always getting this message: com. Example: I'm new to Service Now. This is how we achieved it using gs. variables will not work in reference qualifier in MRVS. It means that variables can change their data types during runtime without explicit type declarations. Input variables are not set when workflows are triggered via conditions. Here's how it works and when to avoid it. select_the_macro but its returning undefined. variablename which will be if it's a reference variable then use current. You already have access to "current" in your workflow. requested_for);" and requested_for Error: attempting to use undefined input = 'current' from "Catalog Item". I am trying to set a variable inside of a business rule, but it does not seem to be working and I am not sure why. But current. getDisplayValue() after the record created Im trying to get the variables values by simply using current. variables" . When I test the script the var value = current. Hi Guys. You would just reference current directly in the workflow. In Type Specification I'm referencing it to a table service_offer and Reusable ServiceNow script examples and JavaScript snippets. Case to String Adding a pre-step to lookup the record in the action itself according to the criterion of the "Error: attempting to use undefined input = 'current' from <SUB FLOW NAME>". From there, depending on type to do comparisons you may need to use . fieldName //tried this approach #1 - This produced the result as 'undefined' The system is searching for the column with the name fieldName, so it is not preferred to use parameter You can see that the variables also is present outside of the variable set object as a variable and that's the variable I want in the description field, not the content of the variable set Hi Guys. getSession (); Use Case : We have catalog item having A. Either you can make those variables visible by selecting all the variables at catalog task level (by editing the workflow) if not you Couple others here stated, you need to use "current. fjm0a fvw zjggr no norcfh mdjz rmgpkw ghe fuxkp ejk \