Retreive a Document ID from the Broker in a Flow Service

I’m trying to retrieve the Document ID for a published document in a subscribe flow service. When errors occur it is difficult to identify what published document on the broker has failed in order to re-publish the document again.

Thank you in advance.

Please let me know if you find any way to get the document id.

Thanks in advance