Unable to create Case task at sn_customerservice_task table

SanjuA
Tera Contributor
I kept below condition to validate when a new email is arrived:
 
Mailbox = Junk
State = Ignored
Receive type = New
Target = Empty
User ID is inactive
____________________
 
(function runAction(/*GlideRecord*/ current, /*GlideRecord*/ event, /*EmailWrapper*/ email, /*ScopedEmailLogger*/ logger, /*EmailClassifier*/ classifier) {

    // Implement email action here

    current.short_description = email.subject;
    current.description = email.body_text;
    current.u_from_address = email.recipients;
    current.u_customer_email = email.user_id.email;
    current.insert();

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

Runjay Patel
Giga Sage

Hi @SanjuA ,

 

where are you checking mentioned condition and how , share the screenshots