How to get variable value in Order Guide script (in Service Portal)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2019 06:33 AM
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?
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2021 11:50 PM
Hi Peter, have you had luck with this, I have yet to find a right solution for it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2021 03:15 PM
Curious if anyone has had any luck with this. Not sure how the order guide script could be of much use without this functionality...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2022 01:54 PM
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!