Change Target Field in Email from an Email Script

Diorella Angulo
Tera Expert

Is there a way to change the Target table field in Emails from a run mail script?

 

When the system receives the response from an email it sets the Target table as Request: REQ#. I need this to be Catalog Task so I can make changes on that table when the response is received it by the system.

find_real_file.png

I have this run mail script which basically works like a link for approval in a notification, it also auto populates the email reply with a subject and text in the body, so is there something I can add there so the target can be sc task table and not the sc_request? I don't have any code for that, it just adds the Request table.

find_real_file.png

 

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

Hello,

The target tables for a reply is based on two things, watemark on the original mail if not present then the number on the subject

The reason why it takes the request as the target table is because the subject contains the request number instead try to send the task number.

Also on what table is the notification created?

Please mark annswer correct/helpful based on reply.

Thanks.

View solution in original post

6 REPLIES 6

Hello,

 

I do not see it not sure why There are two options correct and helpful I can only see yu have marked as helpful of you can also mark it as correct would be appreciated

 

Thanks.

vkachineni
Kilo Sage
Kilo Sage

One workaround is to adjust your mailscript

 

you will have to check the sys_class_name of the current object

 

current.sys_class_name == 'sc_request' then do something to get the SC Task

current.sys_class_name == 'sc_req_item' then do something to get the SC Task

current.sys_class_name == 'sc_task' then do what you are doing.

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022