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
Expand all | Collapse all

Need to retrieve the data from email body in wM

  • 1.  Need to retrieve the data from email body in wM

    Posted Thu December 13, 2018 04:25 PM

    Hi wm experts,

    I am looking to fetch the content of the email body from email sent to wM.

    I followed the steps and I am able to get the details in pub.flow:getTransportInfo.
    However when I try to get the body I am getting error

    Steps I followed :

    1. created the port
    2. created the service as below
      pub.flow:gettransportInfo
      pub.flow:savepipeline
      pub.flow:restorepipeline
      pub.mime:createMimeData
      pub.mime:getBodyPartContent
      pub.io.streamtoString

    I am getting the error at step (createMimeData)

    I donot get the body of the email under (email/content).
    All i get is java.io.ByteArrayInputStream.

    When i map from the email/content to object(input) i get the error as com.wm.app.b2b.server.ServiceException: [ISS.0086.9030] input must be an InputStream

    Request your help on this.

    Thanks


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Need to retrieve the data from email body in wM

    Posted Wed January 23, 2019 06:51 AM

    Hi Preethi,
    You should provide either index or contentID value to get the mail part,
    Which values are you mapping for those fields ? can you please retry 0 or 1 for the index field ?

    mimeData
    index
    contentID

    Cheers
    Onur


    #Integration-Server-and-ESB
    #webMethods