Hello,
I was looking for a way to set the message field of the Email Automation Script Action using a Script Param. Is it possible? If so, how is it done?
Thank you,
Hi João,
You can send an email directly from an automation script action, as documented here (link).
But, as mentioned in the note at the end of the help page linked above, you could also do that from within a C# code block.
From within a C# code block you have access to your script parameters.
As João Severino already said, you will have to create a C# code block to use the script parameters in an email.
This is a very short example script that does this:
var scriptParamValue = engine.GetScriptParam("ParamName").Value;
var bodyOfEmail = "This is the body of an email. Script param value is " + scriptParamValue;
engine.SendEmail(bodyOfEmail, "Test Email", "example@domain.com");