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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Mailing a string table through smtp

    Posted 09/04/15 07:03 AM

    Hi,
    I have a flow service that returns a string table output which has two columns. The number of rows is determined at run-time. Now I have to mail this string table. I tried attaching the table to ‘body’ as well as ‘attachments’ field of smtp service but it didn’t send anything.
    I’m new to webMethods. Any leads will be helpful.
    If there is no way of sending the table as a ‘body’, what are the steps I must take to convert the table to a file(.txt or .xls) and send that as an attachment to smtp.


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Mailing a string table through smtp

    Posted 09/04/15 07:45 AM

    Hi Abhilash,

    you can try to convert the table to a single string by using pub.string:objectToString and include this string to your mailbody.

    Can you share your IS version?

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Mailing a string table through smtp

    Posted 09/04/15 07:49 AM

    Hi,
    Thanks, will try the same.
    I’m running on 9.6


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Mailing a string table through smtp

    Posted 09/04/15 08:15 AM

    The objectToString service can’t take stringTable as its input. Any other suggestions please ?


    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: Mailing a string table through smtp

    Posted 09/04/15 11:03 AM

    Hi Abhilash,

    eventually writing an output template might help.

    See DSP_and_Output_Template_Developers_Guide for further informations about this.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: Mailing a string table through smtp

    Posted 09/04/15 11:40 AM

    Abhilash – you can use html format, use table tags with which you can achieve what you want.

    Thanks,


    #Integration-Server-and-ESB
    #webMethods


  • 7.  RE: Mailing a string table through smtp

    Posted 09/13/15 08:14 AM

    Hi Abhilash,

    As MR as173d said probably the best idea is to use HTML tags. At the end, I assume that you want this table to be easily readable, right?

    You might find some ideas on how to do this here: How to send email - webMethods - Software AG Tech Community & Forums

    Please let us know if it works for you.

    Vlad Turian


    #webMethods
    #Integration-Server-and-ESB