Reference qualifier in Variable Set, based on variable on the order guide

HudyssonPOntes
Tera Expert

Good morning, how are you? I have a variable in my order guide called 'variable,' and there is a variable set with a variable called 'variable_two,' which is of type reference. In an advanced reference qualifier for 'variable_two,' I need to pass the value of the 'variable.' I know that if both variables were outside the variable set, I could pass it in the reference qualifier of 'variable_two' by using javascript: new scriptInclude().function(current.variables.variable), but this doesn't seem to work when 'variable' is outside the variable set and 'variable_two' is inside the variable set. Could you please help me pass the value of 'variable' to the advanced reference qualifier of 'variable_two'? Thank you very much.

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@HudyssonPOntes

you will have to cascade that variable to your catalog item, value entered in order guide variable will be copied to variable in each catalog item

Then you can do this easily

check this link

Order guide variable value in reference qualifier item under it 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

HudyssonPOntes
Tera Expert

Thank you very much for your response, and thank you for your time. I may have forgotten some detail. My variable called 'variable' is in my order guide, and my variable called 'variable_two' is in a multi-row variable set. Based on your response and the link, I understood that I should place the variable 'variable' in both my order guide and my variable set. However, when I try to add a variable with the same name in my variable set, a duplication error occurs. Could you provide more details on this? I don’t have much knowledge, especially not much knowledge about Multi-row Variable Sets.