Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2016 07:38 AM
Here you go. This is a code snippet to get the sys_id of the catalog item
var cat_id='';
if(email.body.item != undefined && email.body.item!='') {
var item=email.body.item.trim();
var gr= new GlideRecord('sc_cat_item');
gr.get('name',item);
cat_id=gr.getValue('sys_id');
}