# Parameterized Excel, Word and CSV attachments

> Give every EduBase participant their own dataset or worksheet by writing question parameters into an attachment, in Excel, Word, PowerPoint, CSV and text files.

In a [parameterized question](https://help.edubase.net/questions/parameterized/), EduBase can also write each participant's values into the question's attachment. Every participant downloads their own file: a CSV dataset to analyze, an Excel workbook with their own figures, or a Word case description with their own names and amounts. The file name can carry parameters too. The answers are then checked against each participant's own values.

## How it works

Write parameter names in curly brackets in the file, exactly as in the question: `{x1}`, `{mean}`. When a participant downloads the attachment, EduBase makes a copy, replaces every known parameter with that participant's value, and serves the copy. Your uploaded file is never changed. Text in curly brackets that is not a parameter of the question stays as it is.

| File | Where parameters are replaced |
|---|---|
| Text files: `txt`, `csv`, `tsv`, `json`, `xml`, `html`, `md`, `yaml`, `tex`, `svg`, `srt`, `vtt`, `ini`, `log`, `sql` | Anywhere in the text. |
| Excel: `xlsx`, `xlsm` | In the cells of every worksheet. A cell that holds only a parameter gets a number when the value is a number, and formulas that use it are recalculated, so a total or a chart follows the participant's data. |
| Word: `docx` | In the body, headers, footers, footnotes, endnotes and comments, even if Word split `{x1}` into several formatting runs. |
| PowerPoint: `pptx` | In the slides and their speaker notes. |

## Add a parameterized attachment

1. Prepare the file with the parameters in it. In the demo exam, the first question's file `dataset_{set}.csv` contains:

    ```text
    student,score
    1,{x1}
    2,{x2}
    ...
    8,{x8}
    ```

2. Open the question in the editor, and under **Add or manage images, media and attachments**, set **Attachment** to **Upload new attachment** and choose the file.
3. Define the parameters the file uses under **Parameters**, and use them in the answer: here `{mean}`, a formula over `{x1}` to `{x8}`. See [Parameter types and constraints](https://help.edubase.net/questions/parameters-reference/).
4. Save, then choose **try** to see the question as a participant would.

![The attachments part of the question editor: Attachment set to Keep current attachments, and Current attachments dataset_{set}.csv (70 B)](https://help.edubase.net/assets/screens/questions/parameterized-attachments/01-attachment.webp)
/// caption
**Question editor → Add or manage images, media and attachments**
///

In the test, the participant sees the file under the question with their own name, such as `dataset_287.csv`, and the rows inside it hold their own eight scores.

![The question in the preview: Download the attached file. It contains your own dataset of eight test scores, with the attachment dataset_287.csv below it](https://help.edubase.net/assets/screens/questions/parameterized-attachments/02-preview.webp)
/// caption
**Question editor → try**
///

Over the REST API and the MCP server, the `attachment` field of a question takes the file name and the Base64-encoded content, in the form `name=content`. The same parameters apply.

## Limits

- Files larger than 20 MB are served unchanged, without parameters.
- ZIP archives and file types not listed above are served unchanged. Where your account allows one attachment per question, the editor suggests bundling several files into an archive; a bundled file is then not parameterized.
- In Excel files, parameters are replaced in cells only, not in sheet names.
- Whether questions can have attachments, and more than one, depends on your account's settings.

## Related

- [Run university exams for large cohorts](https://help.edubase.net/guides/university-exams/)
- [Keep exams meaningful when participants have AI tools](https://help.edubase.net/guides/ai-and-exam-integrity/)
- [Give every participant different numbers](https://help.edubase.net/questions/parameterized/)
- [Parameter types and constraints](https://help.edubase.net/questions/parameters-reference/)
