Back to Microsoft OneDrive

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

Copy a OneDrive or SharePoint file to another folder, with optional rename.
microsoftOneDriveCopyFile
BETA
Permissions
  • Files.ReadWrite
Optional permissions
  • Files.ReadWrite.All
  • Sites.ReadWrite.All
Parameters
NameTypeDescriptionRequired
fileIdfile Select the file to copy.Yes
destinationFolderIdfile Select the destination folder.Yes
newFileNamemustache Optional. Name for the copied file (e.g. "report-copy.pdf").No
overwriteExistingboolean If true, overwrite the file if it already exists at destination. If false, return an error.No
Returns
NameTypeDescription
statusstring COPIED or ERROR.
sensitive.fileIdstring DriveItem ID of the copied file.
sensitive.namestring Copied file name.
sensitive.mimeTypestring File MIME type.
sensitive.sizestring Size (bytes).
sensitive.parentReferenceobject Parent reference metadata for the copied file.
confidential.webUrlstring Web URL to open the item (if available).