Notifications

10 views

Description


Copy an inbound email into the Work Notes or Additional Comments field of a target record.

Procedure


Use one of the existing inbound actions that does this as a model. For example, the Update Problem inbound email action does this in the script of the Action section:

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

You can reuse this code, changing the target table name from problem to the intended target table.

The above code snippet copies the email into the Work Notes [work_notes] field. To copy into the Additional Comments [comments] field, instead, replace current.work_notes with current.comments in the script.

Applicable Versions


All versions.

 

Article Information

Last Updated:2019-02-24 11:26:52
Published:2019-02-24