I have a script task which has 5 variables. I am using c# code for flat file validations.
One variable for the No header record
one variable for the No trailer record.
one variable for the No Detail record.
one variable for the more than one header record
one variable for the more than one trailer record.
Based on the issue raised i have to pass that variable value to the email task and remaining variable values are zero.
Based on the issue raised i am failing the script task and need to pass the variable value to the email task and if it is success then i am going to load the data.
My question is how to pass variable value to the email task ? I don't want to pass 5 variable values it has to automatically take the issue variable value.