Setting field values from the email body
-
- UpdatedAug 1, 2024
- 1 minute read
- Xanadu
- Notifications
Values in an inbound email can set field values in a task record.
Any name:value pair in an inbound email body gets parsed into a variable/value pair in the inbound email script. The name:value pair must be on its own line. Note that most email clients limit the number of characters allowed per line and may truncate excessively long name:value pairs.
Tip: To prevent unexpected parsing, ensure that all the names in the name:value
pairs are unique.
See Redirecting Emails for an example of using setDisplayValue() in an inbound email action.
Note: The action always generates a lowercase variable name. Also, this functionality does
not work on reference fields.
For example, if an email body contains this line: bar. You can use these variables to create conditions such as:
In
this example, the script sets the value of [field] to the value
bar.
The inbound
email script creates the variable email.body.foo with the value of
Note: Spaces are rendered as underscores when a name:value pair gets parsed into a
variable/value pair. For example, if an email body contains a line with spaces like
my variable:data, then the inbound email script creates the
variable email.body.my_variable. The value of the variable is
data.