Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Inbound email recipient processing

Inbound email recipient processing

The recipients variables allow processing of inbound email based on the email recipients.

Table 1. Processing recipients in inbound email
Variable Action
email.recipents Returns a comma-separated list of recipient addresses as a plain text string.
email.recipients_array Returns the recipient addresses as an array.
For example, create a script to process email based on the array values:
var rarray  = email. recipients_array ; for ( var i  = 0 ; i  < rarray. length ; i ++ ) { var recipient  = rarray [i ] ; // do something with it }