IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
  • 1.  Emailing Multiple Attachments

    Posted Fri July 14, 2017 02:16 PM

    Specifically, is there a way to retain the original document and attaching said document into the email? I have a process where if certain validation fails, it kicks off an attachmentEmail process and I would like to retain re-usability for this email service.

    I’ve initialized a document list with attachments and mapped it to the smtp service when called, but I am getting an error saying there is no filename and content in the attachment when I’ve tried mapping/initializing those fields. I realized my problem here is that I am trying to retain a document from a virtual folder within the my webMethods server.

    To clairfy more, is there a way for the smtp service to accept any document type and attach it to the email? For example, lets say I have 2 separate flow services, one processes a .xml file and the other a .txt file. The email service sends out an Exception Document regardless of the extension, but I would also like to attach the original document (located in virtual folder) from either service. Attached below is my mapping/flow service.


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 2.  RE: Emailing Multiple Attachments

    Posted Sun October 29, 2017 07:48 AM

    Hey there!
    You need to initialize attachments list before calling pub.client:smtp.
    Refer picture attached - it’s some common emailing flow, processing attachments from input param, then call smtp.


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 3.  RE: Emailing Multiple Attachments

    Posted Mon October 30, 2017 06:45 AM

    Hi Austin,

    if you have only one attachment to attach to your email, than you can use an index on the mapping line for the attachments input.

    If you require multiple Attachments in one email, than you will have to collect them in an intermediate list by using pub.list:appendToList service and then map this list to the attachments input.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General