IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Passing data to the Email Adapter using Run

    Posted 11/28/06 12:18 PM

    Originally posted by: SystemAdmin


    In a run command, how do I specify one of the fields of my output tree to be the data to send in the body of the text for an email adapter.

    This works:

    =PUT( "EMAIL", " -PR INET -SERVER 266.188.11.111 -TO " + EMAILID Column:GetDeliveryInfo + " -FROM Leads@yy.com -SUB " + SUBJECT Column:GetDeliveryInfo + " -T ", UserFieldA [8]:MessageDelivery )

    But this does not:
    =RUN( "DummyDelivery", " -AE -OAEMAIL1 ' -PR INET -SERVER 266.188.11.111 -TO " + EMAILID Column:GetDeliveryInfo + " -FROM Leads@yy.com -SUB " + SUBJECT Column:GetDeliveryInfo + " -TEXT ''" + UserFieldA [8]:MessageDelivery + "'' -T' " )

    I am trying to use the TEXT parm, but am not sure this is the right way.

    Thanks
    Vale
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: Passing data to the Email Adapter using Run

    Posted 11/29/06 09:54 AM

    Originally posted by: SystemAdmin


    i think its the data in the output card of the map that appears in the message body, so in the child map you need a rule like:

    output=UserFieldA [8]:MessageDelivery

    cheers,
    olly.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 3.  Re: Passing data to the Email Adapter using Run

    Posted 11/29/06 03:21 PM

    Originally posted by: SystemAdmin


    > i think its the data in the output card of the map
    > that appears in the message body, so in the child map
    > you need a rule like:
    >
    > output=UserFieldA [8]:MessageDelivery
    >
    > cheers,
    > olly.

    Here's the statement thats failing:

    =RUN( "DummyDelivery", " -AE -OAEMAIL1 ' -PR INET -SERVER 266.188.11.111 -TO " + EMAILID Column:GetDeliveryInfo + " -FROM Leads@yy.com -SUB " + SUBJECT Column:GetDeliveryInfo + " -TEXT ''" + UserFieldA [8]:MessageDelivery + "'' -T' " )
    So when you say child map, do you mean DummyDelivery ? I'm not clear on where to put that rule.

    Thanks

    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 4.  Re: Passing data to the Email Adapter using Run

    Posted 11/30/06 03:50 AM

    Originally posted by: SystemAdmin


    By child map I mean the DummyDelivery map (in your case).

    This map must have a single output card that is probably a blob.

    Put a dummy bit of text in there, e.g.:

    field:output_card = "here's my email text".

    then remove the -TEXT from the RUN function and run the parent map. See if the "here's my email text" appears in the message body of the email. if it does you'll need to use ECHOIN from the parent map to pass the email text to the child map (DummyDelivery).

    Personally I use the SMTP adapter with the MIME adapter so that I can easily create multiple attachments, send HTML emails, bespoke email headers etc.

    Cheers,
    Olly.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 5.  Re: Passing data to the Email Adapter using Run

    Posted 11/30/06 11:41 AM

    Originally posted by: SystemAdmin


    Ok, I will try give it a try.

    Thanks for spelling it out for me.

    Best
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender