Microsoft OneDrive
App · File Storage · 18 actions
Upload, download, move, copy, share and organize files and folders in OneDrive.
Actions
| Action | What it does |
|---|---|
| Convert file to PDF | Turn a Word, Excel or PowerPoint file, an email or another document into a PDF that later steps can use: an email can attach it, or Upload file can save it. |
| Copy file or folder | Copy a file or folder into a folder, in the same drive or another. |
| Create folder | Create a folder in OneDrive. |
| Create share link | Make a link to a file or folder that people in your organization can open. |
| Create text file | Save text you write, or text from an earlier step, as a new text file in a OneDrive folder. |
| Create workbook | Create a blank Excel workbook in a folder. |
| Delete file or folder | Delete a file or folder. |
| Download file | Download a file so later steps can use it: an AI agent step can read it, or an email can attach it. |
| Get file or folder details | Look up a file or folder's name, size, type, link, dates and the folder it's in. |
| List drives | List the drives you can use: the document libraries of your organization's main SharePoint site, or of another site you name. |
| List folder contents | List the files and folders in a folder. |
| List who has access | List the people, groups and share links that can open a file or folder, and whether each can edit it. |
| Look up share link | Find the file or folder a OneDrive or SharePoint share link points to, and its drive, so later steps can use them. |
| Move file or folder | Move a file or folder into another folder in the same drive. |
| Remove access | Take away one person's, group's or share link's access to a file or folder. |
| Rename file or folder | Give a file or folder a new name. |
| Search files | Find files and folders in a drive whose name or contents match the words you give. |
| Upload file | Upload a file to a folder in OneDrive. |
Convert file to PDF
Turn a Word, Excel or PowerPoint file, an email or another document into a PDF that later steps can use: an email can attach it, or Upload file can save it. The original file is left as it is. Files of up to 2 MB, Microsoft's limit for converting.
Inputs
- File
item_idtextRequired - The file to convert, from an earlier step or a share link you looked up.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
Outputs
document_reftext- The PDF, for later steps that take a file.
file_nametext- The PDF's name: the file's own, ending in .pdf.
Example output
{
"document_ref": "doc_0123456789abcdef0123456789abcdef",
"file_name": "Minutes.pdf"
}Copy file or folder
Copy a file or folder into a folder, in the same drive or another. The copy is made in the background, usually within seconds. A name already taken there gets a number added, so nothing is replaced.
Inputs
- File or folder
item_idtextRequired - The file or folder to copy, from an earlier step or a share link you looked up.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
- Copy into folder
destination_parent_idtextRequired - The folder to put the copy in, from an earlier step or a share link you looked up.
- Drive to copy into
destination_drive_idtext - The drive that folder is in. Leave blank for the same drive.
- Name of the copy
new_nametext - Leave blank to keep the original's name.
Outputs
destination_drive_idtext- The drive the copy goes into.
startedtrue/false- Always true: OneDrive is making the copy.
Example output
{
"destination_drive_id": "drive456",
"started": true
}Create folder
Create a folder in OneDrive.
Inputs
- Folder name
folder_nametextRequired - The new folder's name. If the name is taken, OneDrive adds a number to it.
- Folder
parent_item_idtext - The folder to create it in. Leave blank for the top of the drive.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
Outputs
idtext- The new folder, for later steps that put things in it, move it, share it or delete it.
nametext- Folder name.
Example output
{
"id": "folder123",
"name": "NewFolder"
}Create share link
Make a link to a file or folder that people in your organization can open.
Inputs
- File or folder
item_idtextRequired - The file or folder to share, from an earlier step or a share link you looked up.
- Link lets people
link_typetextRequired - Whether people in your organization with the link can only view it, or can also edit it.One of:
view,edit. - Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
Outputs
linkobject
Example output
{
"link": {
"webUrl": "https://..."
}
}Create text file
Save text you write, or text from an earlier step, as a new text file in a OneDrive folder.
Inputs
- File name
file_nametextRequired - The new file's name, such as 'Notes.txt'. A name with no extension gets .txt.
- Text
contenttextRequired - What the file says.
- Folder
parent_item_idtext - The folder to save it in. Leave blank for the top of the drive.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
- If the name is taken
conflict_behaviortext - What to do when the folder already has a file of that name. Unless you choose otherwise, both are kept and the new one is renamed.One of:
rename(Keep both),replace(Replace the old file),fail(Stop with an error).
Outputs
created_attext- When it was created.
file_typetext- The file's type, such as application/pdf. Blank for a folder.
folder_idtext- The folder it's in, for later steps.
folder_pathtext- Where that folder is in the drive.
idtext- The file or folder, for later steps that use it.
is_foldertrue/false- Whether it's a folder.
modified_attext- When it last changed.
nametext- File or folder name.
sizenumber- Size in bytes.
webUrltext- Web URL for the item.
Example output
{
"created_at": "2026-07-01T09:00:00Z",
"file_type": "text/plain",
"folder_id": "folder123",
"folder_path": "/drive/root:/Council",
"id": "item123",
"is_folder": false,
"modified_at": "2026-07-02T10:30:00Z",
"name": "Notes.txt",
"size": 120,
"webUrl": "https://..."
}Create workbook
Create a blank Excel workbook in a folder.
Inputs
- Workbook name
workbook_nametextRequired - The new workbook's name, such as 'Q3 Sales'. .xlsx is added to the end if it isn't there.
- Folder
parent_item_idtext - The folder to create it in. Leave blank for the top of the drive.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
Outputs
idtext- The new workbook, for Microsoft Excel steps.
nametext- Workbook filename.
webUrltext- Web URL to open the workbook.
Example output
{
"id": "workbook123",
"name": "Q3 Sales.xlsx",
"webUrl": "https://..."
}Delete file or folder
Delete a file or folder. It goes to the drive's recycle bin.
Inputs
- File or folder
item_idtextRequired - The file or folder to delete, from an earlier step or a share link you looked up.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
Outputs
deletedtrue/false- Whether deletion succeeded.
Example output
{
"deleted": true
}Download file
Download a file so later steps can use it: an AI agent step can read it, or an email can attach it. Files of up to 50 MB.
Inputs
- File
item_idtextRequired - The file to download, from 'List folder contents' or a share link you looked up.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
Outputs
document_reftext- The downloaded file, for later steps that take a file.
file_nametext- The file's name.
Example output
{
"document_ref": "doc_0123456789abcdef0123456789abcdef",
"file_name": "Incident report.pdf"
}Get file or folder details
Look up a file or folder's name, size, type, link, dates and the folder it's in.
Inputs
- File or folder
item_idtextRequired - The file or folder, from an earlier step or a share link you looked up.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
Outputs
created_attext- When it was created.
file_typetext- The file's type, such as application/pdf. Blank for a folder.
folder_idtext- The folder it's in, for later steps.
folder_pathtext- Where that folder is in the drive.
idtext- The file or folder, for later steps that use it.
is_foldertrue/false- Whether it's a folder.
modified_attext- When it last changed.
nametext- File or folder name.
sizenumber- Size in bytes.
webUrltext- Web URL for the item.
Example output
{
"created_at": "2026-07-01T09:00:00Z",
"file_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"folder_id": "folder123",
"folder_path": "/drive/root:/Council",
"id": "item123",
"is_folder": false,
"modified_at": "2026-07-02T10:30:00Z",
"name": "Minutes.docx",
"size": 24576,
"webUrl": "https://..."
}List drives
List the drives you can use: the document libraries of your organization's main SharePoint site, or of another site you name.
Inputs
- Site
site_idtext - A SharePoint site, to list its document libraries. Leave blank for your organization's main site.
Outputs
valuelist- List of drives.
Example output
{
"value": [
{
"driveType": "documentLibrary",
"id": "drive1",
"name": "Documents"
}
]
}List folder contents
List the files and folders in a folder.
Inputs
- Folder
parent_item_idtext - The folder to list. Leave blank for the top of the drive.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
Outputs
valuelist- List of files and folders.
Example output
{
"value": [
{
"id": "item1",
"name": "file1.txt"
}
]
}List who has access
List the people, groups and share links that can open a file or folder, and whether each can edit it.
Inputs
- File or folder
item_idtextRequired - The file or folder to check, from an earlier step or a share link you looked up.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
Outputs
countnumber- How many people, groups and links have access.
valuelist- Each person, group or share link with access.
Example output
{
"count": 1,
"value": [
{
"email": "robin@contoso.com",
"id": "aTowIy5mfG1lbWJlcnNoaXA",
"inherited": false,
"inherited_from": "",
"is_link": false,
"link_scope": "",
"link_type": "",
"link_url": "",
"name": "Robin Danielsen",
"roles": [
"write"
]
}
]
}Look up share link
Find the file or folder a OneDrive or SharePoint share link points to, and its drive, so later steps can use them.
Inputs
- Share link
share_urltextRequired - A sharing link copied from OneDrive or SharePoint.
Outputs
drive_idtext- The drive it is in, for later OneDrive or Microsoft Excel steps.
item_idtext- The shared file or folder, for later OneDrive or Microsoft Excel steps.
nametext- File or folder name.
web_urltext- Web URL for the item.
Example output
{
"drive_id": "drive456",
"item_id": "item123",
"name": "Project Tracker.xlsx",
"web_url": "https://..."
}Move file or folder
Move a file or folder into another folder in the same drive.
Inputs
- File or folder
item_idtextRequired - The file or folder to move, from an earlier step or a share link you looked up.
- Move to folder
destination_parent_idtextRequired - The folder to move it into, in the same drive.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
Outputs
idtext- The file or folder moved.
nametext- Item name.
Example output
{
"id": "item123",
"name": "movedItem"
}Remove access
Take away one person's, group's or share link's access to a file or folder. Access that comes from a folder above it has to be removed from that folder.
Inputs
- File or folder
item_idtextRequired - The file or folder, from an earlier step or a share link you looked up.
- Access to remove
permission_idtextRequired - Which access to remove, from 'List who has access'.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
Outputs
permission_idtext- The access that was removed.
removedtrue/false- Whether the access was removed.
Example output
{
"permission_id": "aTowIy5mfG1lbWJlcnNoaXA",
"removed": true
}Rename file or folder
Give a file or folder a new name. It stays in the same folder.
Inputs
- File or folder
item_idtextRequired - The file or folder to rename, from an earlier step or a share link you looked up.
- New name
new_nametextRequired - The new name, with its extension for a file, such as 'Minutes 2026-07.docx'.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
Outputs
created_attext- When it was created.
file_typetext- The file's type, such as application/pdf. Blank for a folder.
folder_idtext- The folder it's in, for later steps.
folder_pathtext- Where that folder is in the drive.
idtext- The file or folder, for later steps that use it.
is_foldertrue/false- Whether it's a folder.
modified_attext- When it last changed.
nametext- File or folder name.
sizenumber- Size in bytes.
webUrltext- Web URL for the item.
Example output
{
"created_at": "2026-07-01T09:00:00Z",
"file_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"folder_id": "folder123",
"folder_path": "/drive/root:/Council",
"id": "item123",
"is_folder": false,
"modified_at": "2026-07-02T10:30:00Z",
"name": "Minutes 2026-07.docx",
"size": 24576,
"webUrl": "https://..."
}Search files
Find files and folders in a drive whose name or contents match the words you give.
Inputs
- Search for
querytextRequired - The words to look for, such as 'budget 2026'.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
- Maximum results
topnumber - The most files and folders to return, up to 200. Leave blank for 200.From 1 to 200.
Outputs
countnumber- How many files and folders were found.
valuelist- The files and folders found.
Example output
{
"count": 1,
"value": [
{
"created_at": "2026-07-01T09:00:00Z",
"file_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"folder_id": "folder123",
"folder_path": "/drive/root:/Council",
"id": "item123",
"is_folder": false,
"modified_at": "2026-07-02T10:30:00Z",
"name": "Minutes.docx",
"size": 24576,
"webUrl": "https://..."
}
]
}Upload file
Upload a file to a folder in OneDrive.
Inputs
- File to upload
file_pathtextRequired - The file to upload: upload one, or use a file from an earlier step.
- Folder
parent_item_idtext - The folder to upload it into. Leave blank for the top of the drive.
- Drive
drive_idtextRequired - The drive to work in: pick one of your organization's document libraries, or use a drive from 'List drives' or 'Look up share link'.
- If the name is taken
conflict_behaviortext - What to do when the folder already has a file of that name. Unless you choose otherwise, both are kept and the new one is renamed.One of:
rename(Keep both),replace(Replace the old file),fail(Stop with an error).
Outputs
idtext- The uploaded file, for later steps that move, share or delete it.
nametext- File name.
webUrltext- Web URL for the uploaded file.
Example output
{
"id": "item123",
"name": "file.txt",
"webUrl": "https://..."
}