State is not updating from reolved to inprogress when we reply from gmail inbox

mania
Tera Contributor

Hi,

 

When we reply any of email, the state should updated from resolved to inprogress, this is working when we reply from outlook but the same thing we tried from gmail inbox it triggering but not updating the state from resolved to inprogress, it is showing target is empty.
Can anyone please help on the how it will work form both outlook and as well as gmail inbox.

Reply inbound action code:
gs.include('validators');
if (current.getTableName() == "sn_hr_core_case") {
    current.comments = "reply from: " + email.origemail + "\n\n" + email.body_text;
    if (email.body.assign != undefined)
        current.assigned_to = email.body.assign;
    if (current.state == 6) {
        current.state = 18;
    }
    current.autoSysFields(false);
    current.update();
}
mania_0-1751385139972.png

Thanks!

3 REPLIES 3

Chaitanya ILCR
Kilo Patron

Hi @mania ,

 

1. Open the email record and check the email logs see if the highlighted inbound action is skipped and why

 

2. check if the received email contains the watermark or not

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

@Chaitanya ILCR 

1. Open the email record and check the email logs see if the highlighted inbound action is skipped and why - yes skipped because the gliderecord not found.

mania_2-1751386456190.png

2. check if the received email contains the watermark or not - we got watermark.

 

mania_4-1751386678185.png

 

Can you please help on this, how to resolve this issue?

Thanks!

 

Hi @mania ,

 

 

1. make sure the table field on the inbound email action is populated

2. the user who is replying back should have access to that record

 

refer these

https://www.servicenow.com/community/itsm-forum/skipping-inbound-action-a-suitable-gliderecord-not-f...

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0759187

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya