submitOrder CartJS api not working.

Mohammed Masi U
Tera Contributor

Hi,

 

I am creating an inbound action that should trigger a catalog item and create a request.

 

var cart = new sn_sc.CartJS();
cart.setRequestedFor("6816f79cc0a8016401c5a33be04be441");
var item = {
'sysparm_id': '1c65b71597aa4d10344f398c1253af12',
'sysparm_quantity': '1',
'variables': {

'office_location': '9d7a9d4d97d70990344f398c1253afc8',
'contact_number': '856-669-6050',
'please_describe_your_request': 'test',
'business_need': 'email.body_text',
'please_select_a_category_for_your_request': 'b6a6253187620510fe1edb573cbb35b4'

}
};

var requestDetails = cart.submitOrder(item);
gs.info(requestDetails);

 

 

 

However, it throws the following errors attached here.

Kindly help me resolve this, thanks. 

 

2 REPLIES 2

Benjamin A
Mega Sage

Hi @Mohammed Masi U,

 

It looks like you are running into this issue.

Hi @Benjamin A 

 

The catalog item I am trying to trigger doesn't have a flow/work flow attached to it.