Hi, I'm having the hardest time trying to figure out how to pass an event field into a variable argument to be used in a macro.
This is my test_macro accepting one argument.
| eval $sub_arg$=subject | sendemail to="myemail address" format="html" server="myserver address" use_tls=1 subject= $sub_arg$
Test SPL :
| makeresults | eval subject = "Test Subject" `test_macro(subject)`
The subject comes into / validated to "subject" and not "Test Subject". What am I doing wrong?
Thank you!
Chris
Neither work." test_macro($subject$)`", sends the literal string "$subject$" and the other fails to run.
alternatively:
| makeresults
| eval subject = "Test Subject"
| `test_macro($subject$)`
Can you please try this:
| makeresults
| `test_macro(subject="Test Subject")`