Hi,
To be able to send the values provided by the placeholders you mentioned, it is preferable to have one variable for each of them (if you desire to perform operations on them and for flexibility). Therefore, the parameters should look like the following:
param(
[string] $smsnumber = "",
[string] $sitename = "",
[string] $device = "",
[string] $name = "",
[string] $status = "",
[string] $down = "",
[string] $message = "",
)
The Parameters field under "Execute Program" in the notification template must also be updated to pass all the placeholders in the same order:
"PHONENUMBER" "[%sitename]" "%device" "%name" "%status" "%down" "(%message)"
The phone number must be passed to the script as well, after verification the placeholders %smsnumber and %smstext are only usable within the notification delivery settings.
Finally, you can use the variables within the body you send.
Regards.
Add comment