Back to Google Drive
Connect Knoon AI with Google Drive (Google) to automate AI workflows.
Export a Google Workspace file from Google Drive to another format and save it as an attachment. Maximum supported exported file size is 10MB.
googleDriveExportFileToAttachment
BETA
Permissions
Optional permissions
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| fileId | file | Select the Google Workspace file to export. Supported examples include Google Docs, Sheets, Slides, and Drawings. | Yes |
| exportMimeType | mustache | Export MIME type to request from Google Drive (e.g. "application/pdf", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "text/csv", "image/png"). Supported values depend on the Google Workspace file type. | Yes |
Returns
| Name | Type | Description |
|---|---|---|
| status | string | DONE. |
| content | string | Attachment. |
| sensitive.sourceFileId | string | Original Google Drive file ID. |
| sensitive.sourceMimeType | string | Original Google Drive MIME type before export. |
| sensitive.name | string | Name of the saved exported attachment. |
| sensitive.mimeType | string | MIME type of the saved attachment. |
| sensitive.size | string | Size (bytes). |




