The CreatorCon Call for Content is officially open! Get started here.

Catalog task is not created

vinod6
Tera Contributor

Hi,
After submit the catalog item ritm is created but catalog task is created. Because In catalog task activity in advance script i worte below script after this catalog task is not created. Before using this script catalog task is created. Can you please provide a solution for this.

var ritm = current.sc_req_item;
var catalogItem = ritm.cat_item;

var productGR = new GlideRecord('sn_customerservice_catalog_product');
productGR.get(ritm.u_product);

var matrixGR = new GlideRecord('sn_customerservice_product_request');
matrixGR.addQuery('u_catalog_item', catalogItem);
matrixGR.addQuery('u_site_product_subproduct', productGR.u_product_site);
matrixGR.query();

if (matrixGR.next()) {
    current.assignment_group = matrixGR.u_initiation_stage_assignee;
}

 After this script catalog task is created.If script is worng please provide a solution for this
Thanks!

1 REPLY 1

Jon23
Mega Sage

@vinod6 

Can you provide screen shots on where this script is being executed?