Create a shortcut function extracting document ID of linked document of
the specific type.