- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2021 10:35 AM
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
Solved! Go to Solution.
- Labels:
-
Request Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2021 11:09 AM
Hi,
There is an issue reported with respect to Cart API.
Please check below community question for the solution.
Please mark helpful and correct answer if this helps you to resolve your issue.
Thanks,
Anil Lande
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2021 11:09 AM
Hi,
There is an issue reported with respect to Cart API.
Please check below community question for the solution.
Please mark helpful and correct answer if this helps you to resolve your issue.
Thanks,
Anil Lande
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2021 11:15 AM
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