Microsoft 365
Connection type
microsoft-365תיבת ה-Outlook שלכם ותיקייה ב-SharePoint או ב-OneDrive. מייל חדש יכול להתחיל תהליכים, והתהליכים יכולים לשלוח מייל ולערוך קבצים.
במבט אחד
| מאפיין | ערך |
|---|---|
| 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.
הגדרות
Set under config: on the Connector.
| הגדרה | סוג | ברירת מחדל | תיאור |
|---|---|---|---|
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חובה | 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})?$` |
ה-JSON Schema המלא של ההגדרות: microsoft-365.schema.json.
שימוש
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
הדף עזר לכם?