Here is a very basic example of email automation
This is an important feedback message stored on the file which must be passed to the supplier
Automation Package
Script Package Action
begin
SetVariable('<FileData>',FileToString('C:\tmp\text.txt'));
Result:=True;
end;
Send Email Action
Variable Value after script execution is completed
About Variables
Variables are used to pass parameters between various objects.
For example, SQL script has failed and you would like to email the SQL to the developer.
Insert <Sql Script> Into the email message and it will be replaced with actual SQL.
Note:
There are several ways to create variables
1. Using script action
2. Using transformation action
3. Using calculation object within transformation action or package
4. Using Set Variable Action
5. Manually using Global Variables