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
‎02-04-2015 10:43 AM
it's easy.. you will have to just do : If you want to do it by Vanialla Javascript, just do :
document.getElementById('sysparm_id').value();
or you can do gel('sysparm_id').value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2015 10:56 AM
thanks abhiram.. sorry that you had to write at many places !!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2015 01:22 AM
Event better would be: g_form.getParameter("sysparm_id")
This does not require a DOM query, which is not recommended.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2015 02:54 AM
when I run g_form.getParameter("sysparm_id") on order guide it gives me blank value but it works perfectly on catalog Items.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2015 03:51 AM
Hi Sachin,
http://www.servicenowguru.com/reporting/identify-servicenow-record-producer-create-record/
Sir Mark Stanger has provided this solution when in past we asked for similar kind of question.
May be this will also help you.