It there a way to use \${event.parm#} as a value inside email script?

Not applicable

I would like to have a business rule create an event and pass parameters to an email message and then use one of the parameter values in an email script query. Is it possible to use a parameter inside an email script? When the email is generated I see the parameter outside the script but so far I have not been able to find a way to use it as a value within the script portion of the message body.

5 REPLIES 5

Gabe1
ServiceNow Employee
ServiceNow Employee

Agreed, flexibility is nice.

The technique you are using should work without issue from a speed/efficiency standpoint. The only real benefit to moving the logic into the email itself would be to keep the events business rule clean and free of logic/code that isn't kicking off an event.

Depending on how modified your instance will be would help determine if it would be beneficial to take time to move the logic. The more complex an instance, the more important it is to keep the code organized - especially for future developers who may need to modify it later.