The Now Platform® Washington DC release is live. Watch now!
‎04-25-2017 11:13 AM
I would like to be able to access an order guide variable to use for a loop in the order guide script field. Does anyone know of a way to access the order guide variables within the order guide script field?
I have tried:
current.vars.<variable_name>
current.variables.<variable_name>
current.variable_pool.<variable_name>
guide.vars.<variable_name>
guide.variables.<variable_name>
guide.variable_pool.<variable_name>
‎04-25-2017 11:31 AM
Please refer below link
http://wiki.servicenow.com/index.php?title=Service_Catalog_Order_Guides#gsc.tab=0
‎04-25-2017 11:42 AM
Balaji,
Thank you for your response, however, I have already reviewed these pages. Neither of them talk about accessing the order guide variables from within the "Script" field on the order guide record.
I am already aware of the guide.add and guide.remove functions. I actually want to use the guide.add function in the script, but need to get the value of an order guide variable in the script as well.
Best regards
‎04-26-2017 01:07 AM
Hi Johnny,
You could use a Catalog Client Script to get access to the variables.
Best regards,
Joni
‎04-26-2017 06:13 AM
Joni,
Thank you, however I am looking to access the variables in the order guide records "Script" field. I want to use some variables in logic surrounding the use of the guide.add function. From my understanding, I would not be able to use the guide.add function in the client script. If that is a misunderstanding on my part then that would be great.
Thanks again,
Johnny