How to use custom variables from service in command arguments?

I have attached several custom variables to services within Director (seen below). I am using a very slightly modified command from the mail notification command for services/hosts (added a few vars). like the $some_var$ nomenclature … can I use the variables from the service, e.g. service.vars.remedy_ticket_priority in my command arguments?


My notification template/rule

The command:

Hmm, I look at look at one of the custom variables used already: $notification_hostname$, and checked that in the custom variables list (presumably from whatever installs / sets up the command previously):

So I’m guessing I can just use “$remedy_ticket_priority$” ?

Kinda answered my own question, it does work as seen above going by the variables resolved (seen in Custom Variables list above). Awesome.