submitOrder CartJS api not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023 02:17 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023 06:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2023 12:46 AM
Hi @Benjamin A
The catalog item I am trying to trigger doesn't have a flow/work flow attached to it.
