Help > Web Development > Object Reference > Appendix > Transaction File Format > Indirect Document Add/Update (type 6)
<a name="kanchor606"></a>Indirect Document Add/Update (type 6)
This transaction type indicates a new document exists or has changed, without including the content of the document. The transaction format allows for adding/updating of file-based documents as well as other documents such as database records and e-mail messages.

ItemLengthData TypeContents
TransCode1ByteValue 06
DocName Length1ByteLength of DocName following
DocNamenCharDocument name as will be recorded in index
TempName Length1ByteZero if TempName not used
TempNamenCharName of temp file where document currently resides (if not DocName)
Time Stamp4Date/TimeDate and time of creation of last modification of the document following, or 0 if unknown
File Type1File TypeFile type code, or 33 for Auto logic
IndexingOptions2Word
bDelete1ByteWhether to delete TempName after indexing

Note: For SQL, the format type must be set to 45 and the time stamp to 0.