Forward Inbound actions

mohna
Kilo Contributor

Hi All,

My requirement for inbound action -Type:Forward, it should update the previously created HR case through inbound email action.

in when to run,below one given

find_real_file.png

condition as email.origemail.indexOf("myinstnace@service-now.com")==-1

actions:

find_real_file.png

gs.include('validators');

if (current.getTableName() == "sn_hr_core_case") {
current.comments = "forwarded by: " + email.origemail + "\n\n" + email.body_text;
current.work_notes = "forwarded by: " + email.origemail + "\n\n" + email.body_text;
current.update();
}

 

The instance is receiving my fw email, but its not updating teh case created through my first email to instance(new type alos configured).

 

Please let me know what do i have to check in this.

9 REPLIES 9

Christian_
Tera Guru

Hello,

If you open the email record, in "System Mailboxes - Inbound - Received", and look through the Email log in, do you see your Innbound email action in the list?
If so, whats in the Message? Maybe this will guide you in the right direction.

mohna
Kilo Contributor

Hi Christian,

I see my inbound actions has been processed.however it is creating new HR case.

find_real_file.png

Use current.insert() inplace of current.update();

mohna
Kilo Contributor

i need to update the case created already . through my forward inbound action -i need already created thru new inbound action to be updated.