- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2017 03:28 AM
Hello,
I want to find out the type of catalog item variables, on the associated workflow.
Can anybody help me with this?
Thanks in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2017 11:49 PM
var ReqItem = new GlideRecord('sc_item_option_mtom');
ReqItem.addQuery('request_item','0d72825fdb0903002f30f6dfbf9619ff');
ReqItem.query();
while(ReqItem.next())
{
gs.log(ReqItem.sc_item_option.item_option_new.type.getDisplayValue());
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2017 12:33 PM
HI Shona,
can you please give me little bit more information about your requirement?
Variable Types - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2017 12:36 PM
Likely wants to evaluate the data type of the variable before performing a script on it.... though I don't know why that would be different scenario by scenario
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2017 10:47 PM
Hi Harshvardhan,
I want to check the data type of the Catalog Item variable depending on which I'll be performing a script on it.
Here basically I want to know how to check the type of the catalog item variable. Additionally, this I want to do on the workflow(Run Script Activity) associated with the catalog Item.
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2017 11:04 PM