Find the type of Catalog Item Variables

shona
Kilo Explorer

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!

1 ACCEPTED SOLUTION

gdd
Giga Expert

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());


}


View solution in original post

6 REPLIES 6

gdd
Giga Expert

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());


}


shona
Kilo Explorer

Hi Girish,



I tried the above code and it worked fine for me.


Thanks so much!