what is variable_pool?

jags
Kilo Contributor

Please explain?

3 REPLIES 3

Brad Tilton
ServiceNow Employee
ServiceNow Employee

It's similar to variables where it's an object that let's you access variable values from the requested item in a script.



current.variable_pool.variableName;


Heather White
Mega Guru

What variable is being pulled with the following code?

current.u_requested_for = current.variable_pool.requested_for;

I have a business rule that uses this, and I believe it's not pulling in the correct user.

 

Thanks,

 

Heather

That code is looking for a variable associated with the item named requested_for.

Is there a requested_for variable on that item and what is its value?