Need to retrieve the data from email body in wM

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

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