- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2017 04:58 AM
Hey,
Does anyone know how can I tell, when I'm inside an order guide in service portal, what is the item sys_id (not the order guide sys_id)?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2017 10:33 PM
g_form.getUniqueValue() will provide you with catalog item sys_id.
catItem = $("sysparm_id").value; -----> catItem = g_form.getUniqueValue() ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2017 10:33 PM
g_form.getUniqueValue() will provide you with catalog item sys_id.
catItem = $("sysparm_id").value; -----> catItem = g_form.getUniqueValue() ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2017 10:48 PM
Yes, but if i'm viewing this item inside an order guide it will return the order guide sys_id and not the current item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2017 11:36 PM
Are you sure about that ? I think they are taking g_form instances differently. Also in client controller they are having a separate instance of g_form for each included item and they are storing it in an array. It should return the sys_id of current item only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2017 11:43 PM
I tested again and it seem to work. Thank you!