# Microsoft 365

> Your Outlook mailbox and a SharePoint or OneDrive folder. New mail starts flows, and flows can send mail and edit files.

Source: https://docs.go-lumen.ai/es/reference/connections/microsoft-365

## De un vistazo

| Propiedad | Valor |
| --- | --- |
| **Class name** | `microsoft-365` |
| **Resource** | ConnectorClass (`lumen.ai/v1alpha1`); a workspace creates a Connector with `classRef: {name: microsoft-365}` |
| **Driver** | `microsoft-365` |
| **Provides** | `mailbox` |
| **Mode** | pull (Lumen reaches out to the system) |

A workspace adds this connection on the Connections page or with `lumen connect`; credentials are kept in a Secret, never in the flow.

## Ajustes

Se definen bajo `config:` en el Connector.

| Ajuste | Tipo | Valor por defecto | Descripción |
| --- | --- | --- | --- |
| `drive` | string |  | The library's name on the site. Empty is the site's main library (Documents). (maxLength 200) |
| `folderPath` | string |  | The folder Lumen reads and saves files in, such as Prices. Paths in flows start here. Empty is the library's top. (maxLength 400; pattern \`^\[^:\*?"<>|#%\]\*$\`) |
| `mailbox` (obligatorio) | string |  | The address Lumen reads and sends as, such as rates@yourcompany.com. A shared mailbox works too. (minLength 3; maxLength 320; pattern \`^\[^@\\s\]+@\[^@\\s\]+\\.\[^@\\s\]+$\`) |
| `site` | string |  | The site's address, such as https://yourcompany.sharepoint.com/sites/Pricing. Empty uses the mailbox's OneDrive. (maxLength 500; pattern \`^(https://\[A-Za-z0-9.-\]+\\.sharepoint\\.(com|us|cn|de)(/\[^?#\]\*)?)?$\`) |
| `tenantId` | string |  | Filled in when an admin of your organization approves Lumen. Not typed by hand. (pattern \`^(\[0-9a-f\]{8}-\[0-9a-f\]{4}-\[0-9a-f\]{4}-\[0-9a-f\]{4}-\[0-9a-f\]{12})?$\`) |

El JSON Schema completo de estos ajustes: [microsoft-365.schema.json](https://docs.go-lumen.ai/schemas/connections/microsoft-365.schema.json).

## Uso

```yaml title="connector.yaml"
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
  name: my-microsoft-365
  namespace: tenant-acme
spec:
  classRef: {name: microsoft-365}
  config: {}
---
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
  name: mailbox-email-microsoft-365-example
  namespace: tenant-acme
spec:
  displayName: "Microsoft 365"
  triggers:
    - id: start
      ref: {name: mailbox-email}
      connectorRef: {name: my-microsoft-365}
      next: [notify-in-app]
  nodes:
    - id: notify-in-app
      stepRef: {name: notify-in-app}
      config:
        body: 'Total: {total}'
        title: New invoice from {supplier}
        to: admins
```
