How to get variable value in Order Guide script (in Service Portal)

peter_repan
Tera Guru

Hi all,

I'm struggling with Order Guide script and cannot find any useful resource on internet.

I'd like to access variable from initial "Describe needs" screen and add dynamically some items to Order guide using "guide.add(sys_id_of_cat_item)".

However, I cannot get the value of variable. 

Command g_request.getParameter('IO:sys_id') is working only in backend.

When using Order guide in Service Portal, I get com.glide.script.RhinoEcmaError: "g_request" is not defined

Any idea how to access variable value in Order Guide script?

find_real_file.png

7 REPLIES 7

rajeevsaraf
Tera Contributor

Hi Peter, have you had luck with this, I have yet to find a right solution for it.

jamesmcwhinney
Giga Guru

Curious if anyone has had any luck with this.  Not sure how the order guide script could be of much use without this functionality...

Allen Andreas
Administrator
Administrator

Please see my article regarding this topic, located here: https://community.servicenow.com/community?id=community_article&sys_id=61ccb3d9dbd0d110b5d6e6be13961...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!