
Microsoft 365 Export
CertifiedExport OneDrive/SharePoint file
Microsoft 365 Export
Export OneDrive/SharePoint file
Converts a single file to PDF or HTML via Graph content?format= and stores the converted copy in Kestra internal storage. Supported source types depend on Graph (Office docs for PDF; Loop/Fluid/WBTX for HTML). Requires Microsoft Graph permissions Files.Read.All and Sites.Read.All.
type: io.kestra.plugin.microsoft365.oneshare.ExportExamples
Export file to PDF format
id: export_to_pdf
namespace: company.team
tasks:
- id: export
type: io.kestra.plugin.microsoft365.oneshare.Export
tenantId: "{{ secret('TENANT_ID') }}"
clientId: "{{ secret('CLIENT_ID') }}"
clientSecret: "{{ secret('CLIENT_SECRET') }}"
driveId: "b!abc123def456"
itemId: "01ABC123DEF456GHI789"
format: PDF
Export file to HTML format
id: export_to_html
namespace: company.team
tasks:
- id: export_html
type: io.kestra.plugin.microsoft365.oneshare.Export
tenantId: "{{ secret('TENANT_ID') }}"
clientId: "{{ secret('CLIENT_ID') }}"
clientSecret: "{{ secret('CLIENT_SECRET') }}"
driveId: "b!abc123def456"
itemId: "01EXCEL123456789"
format: HTML
Properties
driveId *Requiredstring
Drive ID
OneDrive or SharePoint drive identifier required for all OneShare tasks
format *Requiredstring
PDFHTMLExport format
Target format PDF or HTML; Graph limits HTML to loop/fluid/wbtx types
itemId *Requiredstring
Item ID
DriveItem ID of the file to export
clientId string
Client ID
Client ID of the Azure service principal. If you don't have a service principal, refer to create a service principal with Azure CLI.
clientSecret string
Client Secret
Service principal client secret. Use this for Client Secret authentication. Provide clientId, tenantId, and clientSecret. Either clientSecret OR pemCertificate must be provided, not both.
pemCertificate string
PEM Certificate
Alternative authentication method using certificate-based authentication.
Use this for Client Certificate authentication. Provide clientId, tenantId, and pemCertificate.
Either clientSecret OR pemCertificate must be provided, not both.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
tenantId string
Tenant ID
Outputs
uri string
uriURI of the exported file in Kestra internal storage