Value dependent on Email sent

  • Hello there,

    I am a newbie to SSIS and was hoping someone could help me with an issue that I am working on. We currently use vb script to send out emails. Now we are moving towards SSIS in taking over that procedure. The steps include

    1)Execute SQL Script - pulls a list of emails from table

    2)Inside a ForEachLoop container, Task Factory Advance Email and SMS Task sends out the emails

    3)Update table for each email if email was successful or failed.

    I am not familiar with the mechanics, but which SSIS component(s) will help me get the information that the email sent was successful or not? Then I can use that information/value and apply it on TSQL to update the values on the table.

    Hope that makes sense

    Thank You

  • You can use package variable and that variable value you can use to update your table according to you email sent or not

  • run the SQL script in a Data FlowTask and output the results to a variable of type: Object, coped at package level.

    Set up a For Each Task that enumerates the object variable into a second variable which holds the email address.

    Within the FEL put your factory and use the emailaddress variable in expressions where needed.

    Join the original DFT to the FEL and you are good to go.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply