The code I was referring to is actually a property of the folder (I had it misplaced) if you get the DOC_PROP_PROJECTID of the document, then you can get the PROJ_PROP_CODE (string) from the folder record. That will give you the dms000123 or d01234 folder…