Inbound Email Action not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2016 07:37 AM
In a new application I have created I have enabled email sending and am showing sent/received email in activities however whilst I can see outbound email I cannot see inbound so I checked 'System Mailboxes - Received' and saw it wasn't being processed. My inbound action on the correct table is as below:-
gs.include('validators');
if (current.getTableName() == "u_wmi_change_europe") {
current.comments = "reply from: " + email.origemail + "\n\n" + email.body_text;
if (email.body.priority != undefined && isNumeric(email.body.priority))
current.priority = email.body.priority;
}
current.update();
}
Above is the inbound action
TIA
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2016 05:21 AM
Have you checked the below to see what happened?
1. Error string of the ignored email (click on the ignored record in Received mailbox)
2. System logs to see whether it processed or skipped the inbound action, and what the information is
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2020 04:37 AM
Hi Chuck,
Hope you are doing well !!
I have landed in a similar situation while working with ATF. Half of the part which I want to achieve works.
My inbound email action will 'close complete' an catalog task generated from an RITM and also it should change group name in the group table. The inbound email is able to close the sc_task but it is unable to change the group name.
The HPSM group name should get changed(but it does not) when the instance receives the inbound email which the instance receives and closes the catalog task.
The body of the inbound email looks like:
var new_val = email.body.new_hpsm_group_names.split(' | ');
for(var i=0;i<val.length;i++){
var group = new GlideRecord('sys_user_group');
group.addQuery('u_hp_dw_name',val[i]); //checking HPSM group name
group.query();
if(group.next()){
gs.log(group.name,'<<Group Name>>');
group.u_hp_dw_name = new_val[i]; //updating HPSM group name
gs.log(group.u_hp_dw_name,'<<New HPSM Name>>');
group.update();
}
//group.update();
//gs.log(val[i],'<<EC_1>>');
//gs.log(new_val[i],'<<EC_2>>');
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2016 05:27 AM
When you created the new table, under Application Access did you check Can create, Can Update, and maybe Can delete?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2016 05:29 AM
I've been caught by this on a scoped app before!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2016 05:30 AM
Same!