using global macro variables

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
I.J.GE
Posts: 1
Joined: Thu Dec 08, 2016 6:27 am

using global macro variables

Post by I.J.GE »

hi,

would like you assistance with an issue i'm experiencing .. donr know what i'm doing wrong.

i have an ODBC query, that returns the following result:
A MID 111 - 999 hr - email@example.com
(it's actually a concatenate of several cells in a table)
now, i want to use the email address at the end of the result to be used as
the contact that will receive this alert.
so, i tried to use:
%SuggestedReply% endword 1
when i use it in the tune up reply, it works perfect.
but when i try to put it in the destination field it returns an error.

any ideas how to solve it ? or any suggested work around ?

i tried to use global macro variables and it doent work also and returns:
A MID 111 - 999 hr - email@example.com endword 1
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

>%SuggestedReply% endword 1

You cannot use expressions with "endword" and other commands as parameter of the action.
You can use variables but not complicated expressions.

If you set "Tune up Reply value, reply = ['%SuggestedReply%' endword 1]" test option, then you can use "%Reply% variable as parameter of the action and send e-mail to email@example.com

Regards
Alex
Post Reply