--- title: "Set up documents" slug: "set-up-documents" tags: ["Flow topic"] status: "new" updated: 2026-03-20T07:44:02Z published: 2026-03-20T17:44:53Z canonical: "docs.staedean.com/set-up-documents" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.staedean.com/llms.txt > Use this file to discover all available pages before exploring further. # Set up documents Use documents to define which data you want to exchange and in which format and structure. Each document is set up with the same basic structure. A document has a: - Header In the document header, you define the general format settings in: - Properties - Custom handler - Read settings - Write settings - Record layout settings - Line In the document lines, you define the data model in: - Records - Fields - Relations - Sorting - Ranges When a document is used in a message run or when you test it, based on the document setup, a query is created that reads the data. ### Document types The available document types are explained, grouped by common format and purpose characteristics: - External documents - File based: Used to read data from or write data to files. - External documents - ODBC: Used to read or write data using a Database connection. - Internal documents: Used to read data from or write data to D365 F&SCM. ### Using documents in message Use a message to link and map a source document and a target document. A message to: - Read data from D365 F&SCM has an internal type document as source and an external type document as target. - Write data to D365 F&SCM has an external type document as source and an internal type document as target. ## Flow diagram [Embedded content](https://viewer.diagrams.net/?tags=%7B%7D&lightbox=1&highlight=0000ff&edit=_blank&layers=1&nav=1&title=Set%20up%20documents.drawio&dark=auto#R%3Cmxfile%3E%3Cdiagram%20name%3D%22Page-1%22%20id%3D%22NdHKfUKPzYSS4iCkiV0r%22%3E7Vpbb%2BI4FP41SDsPqXKHPhZadlbqaCqxo50%2BrUziBLdOnDoOkP31e5w45EYZ6FAxl7QgOMfH9vG5fgkZWbNo%2BydHyeoT8zEdmbq%2FHVm3I9M0bNOFD8nJS861a5SMkBNfCdWMBfkPK6auuBnxcdoSFIxRQZI202NxjD3R4iHO2aYtFjDa3jVBIe4xFh6ife4%2FxBerkjtx9Jr%2FEZNwVe1s6GokQpWwYqQr5LNNg2XdjawZZ0yU36LtDFNpvMou5bz5K6M7xTiOxTETHhe3L49%2F%2Fytifud8uVnrNlmMtXG5CvZ7VqiXVayUZdzDB9YylZzIK%2BPJZReKZFysWMhiRO9q7pSzLPax1NAAqpa5ZyxRzCcsRK4C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