How to get current catalog item name or sys_id using catalog client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2013 07:39 PM
I have a variable set that used by multiple catalog items, how to write a catalog client script to get the current catalog item information(name, sys_id, etc)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2015 04:22 AM
Thanks Deepak , the below thread solved my query
https://community.servicenow.com/message/775426#775426
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2017 02:16 AM
Hi,
Get the value of Order Guide in Catalog view
var a=g_form.getParameter("sysparm_guide");
alert (a);
Get the value of Current catalog ITEM
var b=g_form.getParameter("sysparm_active");
alert (b);
In normal way, get the sys_id of catalog item
var c=g_form.getParameter("sysparm_id");
alert (c);