> ## Documentation Index
> Fetch the complete documentation index at: https://docs.argalabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OneDrive, Word, Excel, and PowerPoint

> Provision and seed Microsoft file and editor twins with shared run-scoped state

Select any of the four Office twins individually or together. You can also include the [Microsoft twin](https://docs.argalabs.com/twins/microsoft.md) for its additional Graph and identity surfaces. Each provisioned Office app has its own browser URL.

```bash theme={null}
arga twin-runs create --twins onedrive --wait
```

| Twin ID | Supported workflows |
| - | - |
| `onedrive` | Browse files in the browser or use Graph to create folders, look up, list, upload, replace, move, download, delete, and share files. |
| `word` | Edit paragraphs, text formatting, and tables in the browser. Import and export DOCX files. |
| `excel` | Edit worksheets, cells, and formulas in the browser. The Graph workbook API supports bounded ranges, basic tables, and persistent or non-persistent sessions. Import and export XLSX files. |
| `powerpoint` | Create, delete, reorder, and edit slides in the browser. Import and export PPTX files. |

Selected siblings in the same Twin Run share an Entra issuer, users, tokens, and one Graph file store. Changes to names, file bytes, permissions, and deletions are visible across the selected apps. Each Twin Run starts with an empty drive. Read grants allow viewing and downloading, and editing requires write access.

The Excel Graph workbook API requires delegated `Files.ReadWrite` or `Files.ReadWrite.All` access. Calculations cover basic arithmetic, cell and range references, and common aggregates. Word and PowerPoint provide browser editors with twin-specific editor endpoints. Office.js add-in execution, coauthoring, and full production rendering are outside the supported surface.

## Seed Office files

Use the matching keys in `seed_config`. Each key accepts a `files` array. The example uses three twins in one run and requires a plan that supports multiple twins.

```json theme={null}
{
  "name": "Office review",
  "twins": ["word", "excel", "powerpoint"],
  "seed_config": {
    "word": {"files": [{"name": "Brief.docx", "paragraphs": ["Project brief"]}]},
    "excel": {"files": [{"name": "Budget.xlsx", "worksheets": {"Budget": [["Cost", 120]]}}]},
    "powerpoint": {"files": [{"name": "Review.pptx", "slides": [{"title": "Review", "text": "Next steps"}]}]}
  }
}
```

For OneDrive, put file or folder entries under `seed_config.onedrive.files`. A file entry requires `name` and can specify `id`, `owner_id`, `parent_id`, `content_base64`, and `permissions`. Set `folder: true` for a folder. Office seeds use the shared default user unless you set an explicit owner that exists in the Scenario's identity configuration.

Set optional `runtime_config` to a [Microsoft seed configuration](https://docs.argalabs.com/twins/microsoft.md) to specify identity and permissions. Every supplied sibling identity configuration must agree. Arga rejects conflicting file definitions or identities before applying the seed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.