Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.

Inbound email recipient processing

Log in to subscribe to topics and get notified when content changes.

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.recipients 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 } 
Feedback