How to create inbound email action for updating record

Suyash Joshi
Tera Contributor

Hello Everyone,

I need a small requirement in Inbound Email Action script in which I want to update any field record in 'Incident' table.

Thanks and Regards,

Suyash

2 ACCEPTED SOLUTIONS

pooja_m
Mega Guru

Hi Suyash,

 

Navigate to Email --> Inbound Actions --> It will open the "Inbound Email Actions " table and create new action or update the existing action if already exists.

 

Below is the code:

 

if (current.getTableName() == "incident") {
    current.comments = "reply from: " + email.origemail + "\n\n" + email.body_text;
current.state = 1;
        current.update();
}
 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

View solution in original post

6 REPLIES 6

Luxo Nadappan
Tera Guru

Hi , 

 

You can try the same using flow designer "Inbound Email " ,which will does not need any scripting.

You can map the fields using data pills easily.

 

Regards,

Luxo

Hi,

Actually I have to use only Inbound Action for the work!

Thank You for your help

Regards,

Suyash