דלג לתוכן הראשי

Microsoft 365

Connection typemicrosoft-365

תיבת ה-Outlook שלכם ותיקייה ב-SharePoint או ב-OneDrive. מייל חדש יכול להתחיל תהליכים, והתהליכים יכולים לשלוח מייל ולערוך קבצים.

במבט אחד​

מאפייןערך
Class namemicrosoft-365
ResourceConnectorClass (lumen.ai/v1alpha1); a workspace creates a Connector with classRef: {name: microsoft-365}
Drivermicrosoft-365
Providesmailbox
Modepull (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.

הגדרהסוגברירת מחדלתיאור
drivestring-The library's name on the site. Empty is the site's main library (Documents).maxLength 200
folderPathstring-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]+$`
sitestring-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)(/[^?#]*)?)?$`
tenantIdstring-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