- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
14 hours ago
Hello Everyone,
I currently have an inbound action configured that should write email body to comments + attachment directly within the case.
(function runAction( /*GlideRecord*/ current, /*GlideRecord*/ event, /*EmailWrapper*/ email, /*ScopedEmailLogger*/ logger, /*EmailClassifier*/ classifier) {
if (email.user_id.sys_class_name == 'csm_consumer_user' && current.state != 3) {
current.comments = email.body_text;
current.update();
var gsa = new GlideSysAttachment();
gsa.copy('sys_email', email.sys_id, current.getTableName(), current.sys_id);
}
})(current, event, email, logger, classifier);
The email is sent by a user listed in the csm_consumer_user table (sys_class_name -> csm_consumer_user), and the consumer is tracked in the case through a custom field.
The user has all the necessary permissions/role to access the case table and perform operations on comments. However, despite this, when the system processes the email, I encounter an error, as shown below:
(User ID is populated)
I have also verified the sys_watermark, and all sent emails correctly include the source record.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
14 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
14 hours ago
