How to retrieve receivedDocument Name

Hi,

I am working and a Request/Reply solution where an IS6.1 connects to a 6.1 broker with a 4.x clients.

I have a flow that uses a pub.publish.publishAndWait to publish a document to the broker. The flow is expecting a document back but doesn’t know which one and so the receivedDocumentTypeName is not set in the service in options. I need to do some processing based on the documentType I receive back from the broker. I can only see in the pipe line receivedDocument.

Is there a service or a way to retrieve the documentTypeName?