Inserting context of the file inside email message text

Here is very basic example of email automation

This is an important feedback message stored on the file which must be passed to the supplier

Email Automation

Automation Package

Automation Package

Script Package Action

Script Package Action
begin
SetVariable('',FileToString('C:\tmp\text.txt'));
Result:=True;
end;

Send Email Action

Send Email Action

Variable Value after script execution is completed

Variable Value

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 email message and it will be replaced with actual SQL.

Note

There are several ways to create variables

  • Using script action
  • Using transformation action
  • Using calculation object within transformation action or package
  • Using Set Variable Action
  • Manually using Global Variables

For more technologies supported by our ETL Software see Advanced ETL Processor Versions

Confused? Ask question on our ETL Forum
Last updated: March 14, 2023