Inbound email reply

User_267
Tera Contributor

Hi all, we are sending mails to outside vendors. When they reply it needs to be captured in the ritm(catalog items). How to do this?

10 REPLIES 10

I don't have idea on script part. Can you say about scripting like what conditions or what script I can use.

can I know to what field you want to capture the response from email body and what is the table your refereeing to ? is it on sc_request table or sc_req_item Table?

can you confirm this?

 

Regards,

Shyamkumar

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

I want to capture email response in ritm worknotes and the table is sc_req_item

@User_267  ,

Follow below Steps 

Table name - select sc_req_item 

Type - Reply 

Stop Processing - true 

 

Script :

gs.include('validators');

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

}

Try this 

 

Regards,

Shyamkumar 

 

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

For one catalog item we will be submitting multiple request when multiple request are send them reply mail has to be captured in the worknotes in respective ritm.

Will this work for that? Because I cannot add ritm numbers in the code or action tab in subject