Back to Microsoft OneDrive

Connect Knoon AI with Microsoft OneDrive (Microsoft) to automate AI workflows.

Export a OneDrive or SharePoint file to another supported format and save it as an attachment. Maximum supported exported file size is 10MB.
microsoftOneDriveExportFileToAttachment
BETA
Permissions
  • Files.Read
Optional permissions
  • Files.Read.All
  • Sites.Read.All
Parameters
NameTypeDescriptionRequired
fileIdfile Select the OneDrive or SharePoint file to export.Yes
exportMimeTypemustache Export MIME type to request from Microsoft Graph. Supported values are "application/pdf" and "text/html". Availability depends on the source file type.Yes
Returns
NameTypeDescription
statusstring DONE.
contentstring Attachment URL.
sensitive.sourceFileIdstring Original DriveItem ID.
sensitive.sourceMimeTypestring Original source MIME type before export.
sensitive.namestring Name of the saved exported attachment.
sensitive.mimeTypestring MIME type of the saved attachment.
sensitive.sizestring Size (bytes).