Retrieving Document Id using Document Type Instance


When a publishable document is logged, it is stored in WMDOCUMENT with a documentId (which is nothing but the row id of the table).
On MWS, you can retrieve a logged document, by putting in the documentId.
Is there any way of retrieving the documentId if you have the document type instance.
Curious to know this since …document Id is not a part of the _env and you cant retrieve the document using uid/trackId on MWS


i mean … is there a built-in service for retrieving the documentId using the document type instance.
Couldnt find any in WmMonitor Package