How to update RITM Variable using Inbound Email Action

saikatmitra
Tera Contributor

Hi Team,

My inbound email action is triggering but it is not updating the variable. Can you spot where I am going wrong. Below is the script.

The line "current.variables.more_information_required = info_provided" is not working though comments are getting updated properly.

 
gs.include('validators');

if (current.getTableName() == "sc_req_item") {
current.variables.more_information_required = info_provided;
current.comments = "reply from: " + email.origemail + "\n\n" + email.body_text;
current.update();
event.state="stop_processing";
}

1 ACCEPTED SOLUTION

Hi,

If its the value and not the label then put it inside single quotes and test it.

View solution in original post

5 REPLIES 5

asifnoor
Kilo Patron

Hi,

what is info_provided? Is it a variable or static data?

If its static data, enclose it in double quotes and check once.

Mark the comment as a correct answer and also helpful if it has helped to solve the problem.

Hi Asifnoor,

 

info_provided is one of the selectbox values for the variable "more_information_required".

Hi,

If its the value and not the label then put it inside single quotes and test it.

Thank you sir . The correct syntax should be 'info_provided'.