did not create or update sc_req_item using current

Neil Hampshire
Kilo Contributor

We are having an issue where inbound emails are configured via an inbound action to create a request are throwing this error: 'did not create or update sc_req_item using current'.

This was functioning before our upgrade to Quebec from Orlando.

Here is the Email Inbound Action Script: 

(function runAction(/*GlideRecord*/ current, /*GlideRecord*/ event, /*EmailWrapper*/ email, /*ScopedEmailLogger*/ logger, /*EmailClassifier*/ classifier) {

	// Implement email action here
	
	
	var cartId = GlideGuid.generate(null);


var cart = new Cart(cartId);


var item = cart.addItem('1c058e801be4b304c041fc038d4bcb10');
var rc = cart.placeOrder(); 
	
	
	

var gr= new GlideRecord('sc_req_item');


   gr.addQuery('request',rc.sys_id);


   gr.query();


   while(gr.next()){


   gr.description=email.body_text;
	gr.short_description=email.subject;


   gr.update();


   }

//cart.setVariable(item, 'description', email.body_text) ;

})(current, event, email, logger, classifier);

If anyone has any pointers on what might be wrong it'd be really appreciated! Thanks

1 ACCEPTED SOLUTION

Anil Lande
Kilo Patron

Hi,

There is an issue reported with respect to Cart API.

Please check below community question for the solution.

https://community.servicenow.com/community?id=community_question&sys_id=bf7f3ce81b4430d017d162c4bd4b...

Please mark helpful and correct answer if this helps you to resolve your issue.

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

2 REPLIES 2

Anil Lande
Kilo Patron

Hi,

There is an issue reported with respect to Cart API.

Please check below community question for the solution.

https://community.servicenow.com/community?id=community_question&sys_id=bf7f3ce81b4430d017d162c4bd4b...

Please mark helpful and correct answer if this helps you to resolve your issue.

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Prasad Pagar
Mega Sage

Hi Neil,

Yes as mentioned by Anil you need to have either empty user criteria or use OOB user criteria which is matching your inbound user access on that catalog item

Thank you
Prasad