Item.description field from svcatitem to incidents

Hi Experts,


We have a requirement of copying the item.description value from the svccatitem table to the interaction record in a new field , Please suggest how to acheive it , since the catalog item name needs to be captured in the email notification.


Have tried the folloewing, but doesnt work.

sl- catalog add
function newparamadd(record){
var myCartItem = new SCFile("svcCartItem");
var rc = myCartItem.doSelect("cartItemId=\"" record[0] "\"");
if(rc == RC_SUCCESS){
var MyVar = system.vars.$cart_item;
myCartItem.item_description = MyVar;
incidents(after add)
print("Cart ID");
Please suggest.

Top Replies