This graphic shows how you can add the Document ID of your document in a Parameter dialog.