OneDrive
one_driveOneDrive is Microsoft’s cloud storage solution enabling users to store, sync, and share files across devices, offering offline access, real-time collaboration, and enterprise-grade security
Acciones disponibles (35)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Copy ItemONE_DRIVE_COPY_ITEMAcciónTool to copy a driveitem (file or folder) to a new location asynchronously. use when you need to duplicate an item, optionally renaming it or specifying a different parent folder. the operation is asynchronous; the response provides a url to monitor the copy progress.
ONE_DRIVE_COPY_ITEMAcciónTool to copy a driveitem (file or folder) to a new location asynchronously. use when you need to duplicate an item, optionally renaming it or specifying a different parent folder. the operation is asynchronous; the response provides a url to monitor the copy progress.
Parámetros de entrada
namestringThe new name for the copied item. If not provided, the original name is used.
item_idstringObligatorioThe ID of the DriveItem to be copied.
site_idstringThe ID of the site if the item is in a SharePoint site.
user_idstringThe ID of the user if accessing another user's drive.
drive_idstringThe ID of the drive where the item is located. If not provided, 'me' (user's default drive) is assumed.
group_idstringThe ID of the group if the item is in a group drive.
children_onlybooleanIf set to true, only the children of the source driveItem (if it's a folder) are copied, not the driveItem itself. Defaults to false.
parent_referenceobjectReference to the parent item (folder) where the copy will be created. If not provided, the item is copied to the same folder as the original.
include_all_version_historybooleanIf set to true, the version history of the source file is copied to the destination. Defaults to false.
@microsoft.graph.conflictBehaviorstringenumSpecifies how to handle a naming conflict if an item with the same name already exists in the destination. 'fail' (default), 'replace', or 'rename'.
failreplacerename
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Sharing LinkONE_DRIVE_CREATE_LINKAcciónTool to create a sharing link for a driveitem (file or folder) by its unique id. use when you need to generate a shareable link for an item in onedrive or sharepoint.
ONE_DRIVE_CREATE_LINKAcciónTool to create a sharing link for a driveitem (file or folder) by its unique id. use when you need to generate a shareable link for an item in onedrive or sharepoint.
Parámetros de entrada
typestringObligatorioenumThe type of sharing link to create.
vieweditembedscopestringenumThe scope of the link to create. If not specified, the default link type for the organization is created.
anonymousorganizationusersitem_idstringObligatorioThe unique identifier of the drive item (file or folder) for which to create the link.
site_idstringThe unique identifier of the site. Use this if the item is in a SharePoint site's drive.
user_idstringThe unique identifier of the user. Use this if the item is in another user's drive.
drive_idstringThe unique identifier of the drive. If not provided, the link will be created in the current user's drive (me/drive).
group_idstringThe unique identifier of the group. Use this if the item is in a group's drive.
passwordstringThe password for the sharing link. Optional and OneDrive Personal only.
expiration_date_timestringThe expiration date and time for the permission, in yyyy-MM-ddTHH:mm:ssZ format. Example: 2023-12-31T23:59:59Z
retain_inherited_permissionsbooleanIf true (default), existing inherited permissions are retained. If false, all existing permissions are removed when sharing for the first time.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete ItemONE_DRIVE_DELETE_ITEMAcciónTool to delete a driveitem (file or folder) by its unique id from the authenticated user's onedrive. use when you need to remove an item from onedrive. this action moves the item to the recycle bin, not permanently deleting it.
ONE_DRIVE_DELETE_ITEMAcciónTool to delete a driveitem (file or folder) by its unique id from the authenticated user's onedrive. use when you need to remove an item from onedrive. this action moves the item to the recycle bin, not permanently deleting it.
Parámetros de entrada
item_idstringObligatorioThe unique identifier of the DriveItem (file or folder) to be deleted.
if_matchstring(Optional) If this request header is included and the eTag (or cTag) provided doesn't match the current tag on the item, a `412 Precondition Failed` response is returned, and the item won't be deleted.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download a fileONE_DRIVE_DOWNLOAD_FILEAcciónDownloads a file from a user's onedrive using its item id, which must refer to a file and not a folder.
ONE_DRIVE_DOWNLOAD_FILEAcciónDownloads a file from a user's onedrive using its item id, which must refer to a file and not a folder.
Parámetros de entrada
item_idstringObligatorioUnique ID of the file to download; must be a file, not a folder.
user_idstringUser's ID or User Principal Name (UPN), or 'me' for the authenticated user's OneDrive.
file_namestringObligatorioDesired filename (including extension) for the downloaded content.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get DriveONE_DRIVE_GET_DRIVEAcciónRetrieves the properties and relationships of a drive resource by its unique id. use this action when you need to get details about a specific onedrive, user's onedrive, group's document library, or a site's document library.
ONE_DRIVE_GET_DRIVEAcciónRetrieves the properties and relationships of a drive resource by its unique id. use this action when you need to get details about a specific onedrive, user's onedrive, group's document library, or a site's document library.
Parámetros de entrada
drive_idstringObligatorioThe unique identifier of the drive. This can be the ID of the user's personal OneDrive, a group's document library, or a specific drive ID.
select_fieldsstring[]A comma-separated list of properties to include in the response. Use this to retrieve specific fields and reduce the response size. For example, "id,name,driveType". If not provided, all default properties are returned.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Item MetadataONE_DRIVE_GET_ITEMAcciónRetrieves the metadata of a driveitem by its unique id. use this tool to get information about a specific file or folder in onedrive when you have its id. if a `drive id` is not provided, it defaults to the user's main drive.
ONE_DRIVE_GET_ITEMAcciónRetrieves the metadata of a driveitem by its unique id. use this tool to get information about a specific file or folder in onedrive when you have its id. if a `drive id` is not provided, it defaults to the user's main drive.
Parámetros de entrada
item_idstringObligatorioThe unique identifier of the DriveItem (file or folder).
drive_idstringThe unique identifier of the Drive where the item is located. If not provided, the action will target the user's personal OneDrive (me/drive).
select_fieldsstring[]A list of DriveItem properties to return. If not specified, a default set of properties is returned. Refer to the DriveItem resource documentation for available fields.
expand_relationsstring[]A list of relationships to expand in the response, such as 'children'.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Item PermissionsONE_DRIVE_GET_ITEM_PERMISSIONSAcciónRetrieves the permissions of a driveitem by its unique id or path within a specific drive. use when you need to check who has access to a file or folder and what level of access they have.
ONE_DRIVE_GET_ITEM_PERMISSIONSAcciónRetrieves the permissions of a driveitem by its unique id or path within a specific drive. use when you need to check who has access to a file or folder and what level of access they have.
Parámetros de entrada
selectstringA comma-separated list of properties to include in the response. For example, 'id,roles,link'.
item_idstringObligatorioThe unique identifier of the drive item.
site_idstringThe unique identifier of a SharePoint site. Use this if the item is in a SharePoint site's drive.
user_idstringThe unique identifier of a user. Use this if the item is in a specific user's drive (other than 'me').
drive_idstringThe unique identifier of the drive. Required if not using other identifiers like group_id, site_id, or user_id in the path.
group_idstringThe unique identifier of a group. Use this if the item is in a group's drive.
item_pathstringThe path to the item relative to the drive's root. Use this if item_id is not known. Must start with ':/' and end with ':/'. Example: ':/FolderA/FileB.txt:/'. Only applicable when accessing items in the current user's drive (me/drive/root).
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Item ThumbnailsONE_DRIVE_GET_ITEM_THUMBNAILSAcciónTool to retrieve the thumbnails associated with a driveitem. use when you need to display visual previews of files.
ONE_DRIVE_GET_ITEM_THUMBNAILSAcciónTool to retrieve the thumbnails associated with a driveitem. use when you need to display visual previews of files.
Parámetros de entrada
selectstringA comma-separated list of thumbnail sizes to retrieve (e.g., "small,medium,large", or "c300x400_crop"). If not specified, all available thumbnails for the first thumbnailSet (id: "0") are returned.
item_idstringObligatorioThe unique identifier of the DriveItem.
site_idstringThe unique identifier of a Site. Provide either drive_id, group_id, site_id, or user_id.
user_idstringThe unique identifier of a User. Provide either drive_id, group_id, site_id, or user_id.
drive_idstringThe unique identifier of the Drive. If not provided, 'me' will be used for the current user's drive.
group_idstringThe unique identifier of a Group. Provide either drive_id, group_id, site_id, or user_id.
original_orientationbooleanIf true, retrieves the thumbnail with its original EXIF orientation. This is only supported on OneDrive Personal. Defaults to false.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Item VersionsONE_DRIVE_GET_ITEM_VERSIONSAcciónTool to retrieve the version history of a driveitem by its unique id. use when you need to access or list previous versions of a file.
ONE_DRIVE_GET_ITEM_VERSIONSAcciónTool to retrieve the version history of a driveitem by its unique id. use when you need to access or list previous versions of a file.
Parámetros de entrada
item_idstringObligatorioThe unique identifier of the item (file or folder).
site_idstringThe unique identifier of the site. Mutually exclusive with drive_id, group_id, and user_id.
user_idstringThe unique identifier of the user. Mutually exclusive with drive_id, group_id, and site_id.
drive_idstringThe unique identifier of the drive. Mutually exclusive with group_id, site_id, and user_id. One of these must be provided if not using the /me path.
group_idstringThe unique identifier of the group. Mutually exclusive with drive_id, site_id, and user_id.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Drive QuotaONE_DRIVE_GET_QUOTAAcciónTool to retrieve the quota information for the authenticated user's onedrive. use this action to check the storage space details like total, used, and remaining space on the user's onedrive.
ONE_DRIVE_GET_QUOTAAcciónTool to retrieve the quota information for the authenticated user's onedrive. use this action to check the storage space details like total, used, and remaining space on the user's onedrive.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Recent ItemsONE_DRIVE_GET_RECENT_ITEMSAcciónRetrieves a list of items that have been recently used by the authenticated user. this tool is useful when you need to access or display files and folders that the user has interacted with recently across their onedrive and accessible shared drives.
ONE_DRIVE_GET_RECENT_ITEMSAcciónRetrieves a list of items that have been recently used by the authenticated user. this tool is useful when you need to access or display files and folders that the user has interacted with recently across their onedrive and accessible shared drives.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Shared ItemsONE_DRIVE_GET_SHARED_ITEMSAcciónTool to retrieve a list of items that have been shared with the authenticated user. use this action to get details of files and folders shared with the current user.
ONE_DRIVE_GET_SHARED_ITEMSAcciónTool to retrieve a list of items that have been shared with the authenticated user. use this action to get details of files and folders shared with the current user.
Parámetros de entrada
allow_externalbooleanSet to true to include items shared from external tenants. Defaults to false, which only returns items shared within the user's own tenant.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get SharePoint List ItemsONE_DRIVE_GET_SHAREPOINT_LIST_ITEMSAcciónTool to get the items (list items) within a specific sharepoint list on a site. use when you need to retrieve data from a sharepoint list.
ONE_DRIVE_GET_SHAREPOINT_LIST_ITEMSAcciónTool to get the items (list items) within a specific sharepoint list on a site. use when you need to retrieve data from a sharepoint list.
Parámetros de entrada
expandstringA comma-separated list of relationships to expand, or 'fields(select=columnName1,columnName2)' to retrieve specific fields. For example, to get specific columns 'Name' and 'Color', use 'fields(select=Name,Color)'.
filterstringAn OData filter query to restrict the results. For example, to filter items where 'Quantity' is less than 600, use 'fields/Quantity lt 600'.
selectstringA comma-separated list of properties to include in the response. Often used in conjunction with '$expand=fields(select=...)'. For example, 'id,name,fields'.
list_idstringObligatorioThe unique identifier of the list within the SharePoint site.
site_idstringObligatorioThe unique identifier of the SharePoint site.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Site DetailsONE_DRIVE_GET_SITE_DETAILSAcciónRetrieves metadata for a specific sharepoint site by its id. use this action when you need to get details like display name, web url, and creation/modification dates for a known sharepoint site.
ONE_DRIVE_GET_SITE_DETAILSAcciónRetrieves metadata for a specific sharepoint site by its id. use this action when you need to get details like display name, web url, and creation/modification dates for a known sharepoint site.
Parámetros de entrada
site_idstringObligatorioThe unique identifier of the SharePoint site. This is the id property of the site resource.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get SharePoint Site Page ContentONE_DRIVE_GET_SITE_PAGE_CONTENTAcciónGets the content of a modern sharepoint site page. use when you need to retrieve the details and content of a specific page within a sharepoint site.
ONE_DRIVE_GET_SITE_PAGE_CONTENTAcciónGets the content of a modern sharepoint site page. use when you need to retrieve the details and content of a specific page within a sharepoint site.
Parámetros de entrada
expandstringExpands related entities. For example, use 'canvasLayout' to include the page's layout and web part content.
page_idstringObligatorioThe unique identifier of the site page.
site_idstringObligatorioThe unique identifier of the SharePoint site.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Invite User to Drive ItemONE_DRIVE_INVITE_USER_TO_DRIVE_ITEMAcciónTool to invite users or grant permissions to a specific item in a onedrive drive. use when you need to share a file or folder with other users and define their access level (e.g., read or write).
ONE_DRIVE_INVITE_USER_TO_DRIVE_ITEMAcciónTool to invite users or grant permissions to a specific item in a onedrive drive. use when you need to share a file or folder with other users and define their access level (e.g., read or write).
Parámetros de entrada
rolesstring[]ObligatorioSpecifies the roles to be granted to the recipients.
item_idstringObligatorioThe unique identifier of the drive item (file or folder).
messagestringA plain text formatted message that is included in the sharing invitation. Maximum length 2000 characters.
site_idstringThe unique identifier of a SharePoint site. Use this if the item is in a SharePoint site's drive.
user_idstringThe unique identifier of a user. Use this if the item is in another user's drive that you have access to.
drive_idstringThe unique identifier of the drive. If not provided, the authenticated user's personal drive (me/drive) will be used.
group_idstringThe unique identifier of a Microsoft 365 group. Use this if the item is in a group's drive.
passwordstringThe password set on the invite by the creator. Optional and OneDrive Personal only.
recipientsobject[]ObligatorioA collection of recipients who will receive access and the sharing invitation.
require_sign_inbooleanSpecifies whether the recipient of the invitation is required to sign-in to view the shared item.
send_invitationbooleanIf true, a sharing link is sent to the recipient. Otherwise, a permission is granted directly without sending a notification.
expiration_date_timestringSpecifies the dateTime after which the permission expires. ISO 8601 format. Example: "2023-12-31T23:59:59.000Z"
retain_inherited_permissionsbooleanOptional. If true (default), any existing inherited permissions are retained on the shared item when sharing this item for the first time. If false, all existing permissions are removed when sharing for the first time.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Drive Item ActivitiesONE_DRIVE_LIST_DRIVE_ITEM_ACTIVITIESAcciónTool to list recent activities for a specific item in a onedrive drive. use when you need to track changes or actions performed on a file or folder.
ONE_DRIVE_LIST_DRIVE_ITEM_ACTIVITIESAcciónTool to list recent activities for a specific item in a onedrive drive. use when you need to track changes or actions performed on a file or folder.
Parámetros de entrada
$topintegerShow only the first n items.
$skipintegerSkip the first n items.
$filterstringFilter items by property values.
item_idstringObligatorioThe unique identifier of the driveItem.
$orderbystringOrder items by property values.
drive_idstringObligatorioThe unique identifier of the drive.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List DrivesONE_DRIVE_LIST_DRIVESAcciónTool to retrieve a list of drive resources available to the authenticated user, or for a specific user, group, or site. use when you need to find out what drives are accessible.
ONE_DRIVE_LIST_DRIVESAcciónTool to retrieve a list of drive resources available to the authenticated user, or for a specific user, group, or site. use when you need to find out what drives are accessible.
Parámetros de entrada
topintegerThe maximum number of items to return in a single page. Must be between 1 and 999.
expandstringComma-separated list of relationships to expand (e.g., "root,list").
selectstringComma-separated list of properties to include in the response (e.g., "id,name,driveType").
orderbystringA comma-separated list of properties to order the results by, optionally followed by "asc" or "desc" (e.g., "name desc").
site_idstringThe ID of the site to list drives for. If provided, group_id and user_id should not be used.
user_idstringThe ID of the user to list drives for. If provided, group_id and site_id should not be used. If none of group_id, site_id, or user_id are provided, the drives for the current authenticated user (/me/drives) will be listed.
group_idstringThe ID of the group to list drives for. If provided, site_id and user_id should not be used.
skip_tokenstringA token used to retrieve the next page of results.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Root Drive ChangesONE_DRIVE_LIST_ROOT_DRIVE_CHANGESAcciónTool to list changes in the root of the user's primary drive using a delta token. use when you need to track file and folder modifications, additions, or deletions in the main onedrive directory.
ONE_DRIVE_LIST_ROOT_DRIVE_CHANGESAcciónTool to list changes in the root of the user's primary drive using a delta token. use when you need to track file and folder modifications, additions, or deletions in the main onedrive directory.
Parámetros de entrada
tokenstringA string token that represents the state of the drive from a previous call. It can be a deltaLink from a previous response, the literal string 'latest' to get a token for future calls without enumerating current items, or omitted to get all current items and a nextLink or deltaLink.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List SharePoint List Items DeltaONE_DRIVE_LIST_SHAREPOINT_LIST_ITEMS_DELTAAcciónTool to track changes to items in a sharepoint list using a delta query. use when you need to get newly created, updated, or deleted list items without performing a full read of the entire item collection.
ONE_DRIVE_LIST_SHAREPOINT_LIST_ITEMS_DELTAAcciónTool to track changes to items in a sharepoint list using a delta query. use when you need to get newly created, updated, or deleted list items without performing a full read of the entire item collection.
Parámetros de entrada
topintegerMaximum number of items to return in a single response.
tokenstringIf unspecified or empty, enumerates the current state. If 'latest', returns an empty response with the latest delta token. If a previous delta token, returns changes since that token.
expandstringComma-separated list of relationships to expand.
selectstringComma-separated list of listItem properties to return.
list_idstringObligatorioThe unique identifier of the list within the site.
site_idstringObligatorioThe unique identifier of the SharePoint site.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Site ColumnsONE_DRIVE_LIST_SITE_COLUMNSAcciónTool to list all column definitions for a sharepoint site. use this when you need to retrieve the schema or structure of columns within a specific sharepoint site.
ONE_DRIVE_LIST_SITE_COLUMNSAcciónTool to list all column definitions for a sharepoint site. use this when you need to retrieve the schema or structure of columns within a specific sharepoint site.
Parámetros de entrada
topintegerThe maximum number of items to return.
skipintegerThe number of items to skip before starting to collect the result set.
expandstringComma-separated list of related resources to expand in the response.
filterstringOData filter expression to apply to the results.
selectstringComma-separated list of properties to include in the response.
orderbystringComma-separated list of properties used to sort the results.
site_idstringObligatorioThe unique identifier of the SharePoint site. Example: `contoso.sharepoint.com,2C712604-133D-4A7C-9194-F53CE4C952A2,A704AEF5-C2C0-43C3-A3D8-9F55A73A02E2`
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Site Drive Items DeltaONE_DRIVE_LIST_SITE_DRIVE_ITEMS_DELTAAcciónTool to track changes to driveitems in the default document library of a sharepoint site. use when you need to get a list of items that have been added, modified, or deleted since a previous state or to get an initial enumeration of all items.
ONE_DRIVE_LIST_SITE_DRIVE_ITEMS_DELTAAcciónTool to track changes to driveitems in the default document library of a sharepoint site. use when you need to get a list of items that have been added, modified, or deleted since a previous state or to get an initial enumeration of all items.
Parámetros de entrada
tokenstringA token used to retrieve a specific page of results or to get changes since a previous state. Can be 'latest' to get the most recent delta token without items, a deltaLink URL, or a timestamp (YYYY-MM-DDTHH:MM:SSZ).
site_idstringObligatorioThe unique identifier of the SharePoint site.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Site ListsONE_DRIVE_LIST_SITE_LISTSAcciónTool to list all lists under a specific sharepoint site. use when you need to enumerate lists within a known site.
ONE_DRIVE_LIST_SITE_LISTSAcciónTool to list all lists under a specific sharepoint site. use when you need to enumerate lists within a known site.
Parámetros de entrada
topintegerThe maximum number of items to return.
skipintegerThe number of items to skip before starting to collect the result set.
expandstringComma-separated list of relationships to expand in the response. Example: columns,items
filterstringOData filter expression. Example: startswith(name,'Doc')
selectstringComma-separated list of properties to include in the response. Example: id,name,list
orderbystringOData order by expression. Example: name asc
site_idstringObligatorioThe unique identifier of the SharePoint site.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Site SubsitesONE_DRIVE_LIST_SITE_SUBSITESAcciónTool to list all subsites of a sharepoint site. use when you need to retrieve a collection of subsites for a given parent site.
ONE_DRIVE_LIST_SITE_SUBSITESAcciónTool to list all subsites of a sharepoint site. use when you need to retrieve a collection of subsites for a given parent site.
Parámetros de entrada
site_idstringObligatorioThe unique identifier of the SharePoint site for which to list subsites.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List SubscriptionsONE_DRIVE_LIST_SUBSCRIPTIONSAcciónTool to list the current subscriptions for the authenticated user or app. use this to retrieve details of existing webhook subscriptions.
ONE_DRIVE_LIST_SUBSCRIPTIONSAcciónTool to list the current subscriptions for the authenticated user or app. use this to retrieve details of existing webhook subscriptions.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Move ItemONE_DRIVE_MOVE_ITEMAcciónTool to move a file or folder to a new parent folder in onedrive. use when you need to reorganize your files or folders by changing their location. you can optionally rename the item during the move.
ONE_DRIVE_MOVE_ITEMAcciónTool to move a file or folder to a new parent folder in onedrive. use when you need to reorganize your files or folders by changing their location. you can optionally rename the item during the move.
Parámetros de entrada
namestringThe new name for the DriveItem. If not provided, the item retains its original name.
itemIdstringObligatorioThe unique identifier of the file or folder (DriveItem) to be moved.
driveIdstringThe unique identifier of the Drive that contains the item. If not specified, it defaults to the user's personal drive (`/me/drive`).
parentReferenceobjectObligatorioThe new parent folder reference.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create folderONE_DRIVE_ONEDRIVE_CREATE_FOLDERAcciónCreates a new folder in the user's onedrive, automatically renaming on conflict, optionally within a specified parent folder (by id or full path from root) which, if not the root, must exist and be accessible.
ONE_DRIVE_ONEDRIVE_CREATE_FOLDERAcciónCreates a new folder in the user's onedrive, automatically renaming on conflict, optionally within a specified parent folder (by id or full path from root) which, if not the root, must exist and be accessible.
Parámetros de entrada
namestringObligatorioThe desired name for the new folder. If a folder with this name already exists in the specified parent_folder, the new folder will be automatically renamed (e.g., 'New Folder' might become 'New Folder 1'). Examples: ['Annual Reports', 'Client Meeting Notes']
user_idstringIdentifier for the user. This action operates on the currently authenticated user's OneDrive. Examples: ['me']
parent_folderstringID or full path of the parent folder for the new folder. Paths must start from the root (e.g., '/Documents/Reports'). If an ID is provided, it refers to an existing folder's unique ID. Examples: ['/Projects/Alpha', 'folder_id_12345ABC', '/']
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create a new text fileONE_DRIVE_ONEDRIVE_CREATE_TEXT_FILEAcciónCreates a new text file with specified content in a onedrive folder, using either the folder's unique id or its absolute path (paths are automatically resolved to ids); note that onedrive may rename or create a new version if the filename already exists.
ONE_DRIVE_ONEDRIVE_CREATE_TEXT_FILEAcciónCreates a new text file with specified content in a onedrive folder, using either the folder's unique id or its absolute path (paths are automatically resolved to ids); note that onedrive may rename or create a new version if the filename already exists.
Parámetros de entrada
namestringObligatorioThe desired name for the new text file, including its extension (e.g., 'report.txt', 'notes.log').
folderstringThe unique identifier (ID) or an absolute path of the OneDrive folder where the new text file will be created.
contentstringObligatorioThe plain text content to be written into the new file.
user_idstringThe user's ID or the literal 'me' to represent the currently authenticated user.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Find ItemONE_DRIVE_ONEDRIVE_FIND_FILEAcciónNon-recursively finds an item (file or folder) in a specified onedrive folder; if `folder` is provided as a path, it must actually exist.
ONE_DRIVE_ONEDRIVE_FIND_FILEAcciónNon-recursively finds an item (file or folder) in a specified onedrive folder; if `folder` is provided as a path, it must actually exist.
Parámetros de entrada
namestringObligatorioThe exact name of the file or folder to find within the specified `folder`.
folderstringThe unique identifier (ID) or absolute path of the OneDrive folder for the search. For the root folder, use '/'. Paths must start with '/'.
user_idstringThe unique identifier of the user (e.g., a GUID) or the alias 'me' to represent the currently authenticated user. This determines whose OneDrive will be accessed.
include_metadatabooleanIf set to true, the response will include the complete metadata for each found item. If false (default), only essential properties like id, name, and webUrl are returned.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Find FolderONE_DRIVE_ONEDRIVE_FIND_FOLDERAcciónFinds folders by name within an accessible parent folder in onedrive, or lists all its direct child folders if no name is specified.
ONE_DRIVE_ONEDRIVE_FIND_FOLDERAcciónFinds folders by name within an accessible parent folder in onedrive, or lists all its direct child folders if no name is specified.
Parámetros de entrada
namestringExact name of the folder to find. If omitted, all direct child folders of the parent `folder` are returned.
folderstringPath (e.g., '/My Files/Work', '/' for root) or unique ID of the parent folder where child folders are searched.
user_idstringUser's unique identifier (e.g., email, UPN) or 'me' for the authenticated user, specifying the OneDrive account.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List OneDrive itemsONE_DRIVE_ONEDRIVE_LIST_ITEMSAcciónRetrieves all files and folders as `driveitem` resources from the root of a specified user's onedrive, automatically handling pagination.
ONE_DRIVE_ONEDRIVE_LIST_ITEMSAcciónRetrieves all files and folders as `driveitem` resources from the root of a specified user's onedrive, automatically handling pagination.
Parámetros de entrada
topintegerMaximum items per API request, setting the batch size; the action automatically handles pagination to fetch all items. The Microsoft Graph API may limit this (e.g., to 999).
selectstring[]Specifies `driveItem` properties to return. If omitted or empty, default properties are returned. Refer to Microsoft Graph API documentation for a complete list of `driveItem` properties.
user_idstringUser's unique identifier (e.g., 'user@example.com', object ID) or 'me' for the authenticated user's OneDrive.
Parámetros de salida
dataobjectObligatorioDictionary with a 'value' key holding a list of all `driveItem` objects (files/folders) from the root of the user's OneDrive, including selected or default properties.
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upload fileONE_DRIVE_ONEDRIVE_UPLOAD_FILEAcciónUploads a file to a specified onedrive folder, automatically renaming on conflict and supporting large files via chunking.
ONE_DRIVE_ONEDRIVE_UPLOAD_FILEAcciónUploads a file to a specified onedrive folder, automatically renaming on conflict and supporting large files via chunking.
Parámetros de entrada
fileobjectObligatorioThe file to be uploaded, including its name and access to its binary content.
folderstringDestination folder path from root (e.g., '/Documents/Reports') or a unique folder ID.
user_idstringUser ID (e.g., user_principal_name, unique GUID) or 'me' for the authenticated user, determining the target OneDrive.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Preview Drive ItemONE_DRIVE_PREVIEW_DRIVE_ITEMAcciónGenerates or retrieves a short-lived embeddable url for a preview of a specific item. use when you need to display a temporary preview of a file.
ONE_DRIVE_PREVIEW_DRIVE_ITEMAcciónGenerates or retrieves a short-lived embeddable url for a preview of a specific item. use when you need to display a temporary preview of a file.
Parámetros de entrada
pagestringOptional. Page number of document to start at, if applicable. Specified as string for future use cases around file types such as ZIP.
zoomnumberOptional. Zoom level to start at, if applicable.
item_idstringObligatorioThe unique identifier of the DriveItem.
site_idstringThe unique identifier of the Site. Provide if the item is in a SharePoint site.
user_idstringThe unique identifier of the User. Provide if the item is in another user's drive.
drive_idstringThe unique identifier of the Drive. If not provided, the request will be made to the current user's drive.
group_idstringThe unique identifier of the Group. Provide if the item is in a group drive.
share_idstringThe unique identifier of the shared item. Provide if the item is accessed via a share link.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Search ItemsONE_DRIVE_SEARCH_ITEMSAcciónSearches for driveitems in onedrive that match the specified query. use this to find files or folders based on keywords.
ONE_DRIVE_SEARCH_ITEMSAcciónSearches for driveitems in onedrive that match the specified query. use this to find files or folders based on keywords.
Parámetros de entrada
qstringObligatorioThe query text used to search for items. Values may be matched across several fields including filename, metadata, and file content.
topintegerThe maximum number of items to return in a single page. Default is 200.
selectstringComma-separated list of properties to include in the response.
orderbystringA comma-separated list of properties used to sort the order of the items in the response. Use 'asc' or 'desc' for ascending or descending order, e.g., 'name asc'.
drive_idstringThe ID of the drive to search within. If not provided, the user's personal drive (me/drive) will be searched. Can also be a group ID, site ID, or user ID.
skip_tokenstringA token to retrieve the next page of results, obtained from the @odata.nextLink in a previous response.
search_scopestringenumSpecifies the scope of the search. 'root' searches within a specific folder hierarchy (default if drive_id is specified for a drive item, or /me/drive/root). 'drive' broadens the search to include items shared with the current user (used with /me/drive/search).
driveroot
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update Drive Item MetadataONE_DRIVE_UPDATE_DRIVE_ITEM_METADATAAcciónTool to update the metadata of a specific item (file or folder) in onedrive. use this to rename items, change descriptions, or move items to a new parent folder.
ONE_DRIVE_UPDATE_DRIVE_ITEM_METADATAAcciónTool to update the metadata of a specific item (file or folder) in onedrive. use this to rename items, change descriptions, or move items to a new parent folder.
Parámetros de entrada
namestringThe new name for the drive item.
item_idstringObligatorioThe unique identifier of the drive item (file or folder) to update.
site_idstringThe unique identifier of the site. Used when updating an item within a site's drive.
user_idstringThe unique identifier of the user. Used when updating an item within a specific user's drive.
drive_idstringThe unique identifier of the drive. Required if not using other specific paths like /me, /groups/{group-id}, /sites/{site-id}, or /users/{user-id}.
group_idstringThe unique identifier of the group. Used when updating an item within a group's drive.
descriptionstringThe new description for the drive item.
parent_reference_idstringThe ID of the new parent item. Use this to move the item. The driveId of the parentReference can also be specified if moving between drives.
additional_propertiesobjectAllows passing any other updatable DriveItem properties not explicitly defined in the model.
parent_reference_drive_idstringThe drive ID of the new parent item, if moving to a different drive.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Triggers (9)
Los triggers son eventos externos que pueden iniciar un flujo en tus agentes (ej: nuevo email, mensaje recibido, registro creado).
OnedrivebasetriggerONE_DRIVE_BASE_TRIGGERTriggerBase trigger for OneDrive changes using Gmail-style state management.
Subclasses override `filter_changes(...)` to extract only the relevant items.
ONE_DRIVE_BASE_TRIGGERTriggerBase trigger for OneDrive changes using Gmail-style state management. Subclasses override `filter_changes(...)` to extract only the relevant items.
Configuración
drive_pathstringThe path in OneDrive to monitor for changes. Default is root.
include_deletedbooleanWhether to include deleted items in the changes
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
Payload del evento
event_typestringObligatorioType of change event (created, modified, deleted)
itemobjectObligatorioThe OneDrive item that changed
OneDrive File Created TriggerONE_DRIVE_FILE_CREATED_TRIGGERTriggerTriggers when a new file is created in OneDrive.
Uses Gmail-style state management for reliable duplicate prevention.
ONE_DRIVE_FILE_CREATED_TRIGGERTriggerTriggers when a new file is created in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.
Configuración
drive_pathstringThe path in OneDrive to monitor for changes. Default is root.
include_deletedbooleanWhether to include deleted items in the changes
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
Payload del evento
event_typestringObligatorioType of change event (created, modified, deleted)
itemobjectObligatorioThe OneDrive item that changed
Instrucciones
**Instructions for Setting Up the Trigger:** - Ensure that OneDrive API access is configured for your account. - This trigger will monitor for newly created files in your OneDrive. - Use `include_folders` to also detect folder creation events. - The trigger uses timestamp filtering and duplicate prevention like Gmail triggers.
File UpdatedONE_DRIVE_FILE_UPDATEDTriggerTrigger that fires when a OneDrive file's content or metadata changes.
Returns file ID, last modified time, and modifier info.
ONE_DRIVE_FILE_UPDATEDTriggerTrigger that fires when a OneDrive file's content or metadata changes. Returns file ID, last modified time, and modifier info.
Configuración
drive_pathstringThe path in OneDrive to monitor for file updates. Use '/' for root or a subpath like 'Documents/Reports'.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
Payload del evento
file_idstringObligatorioThe ID of the updated file
last_modified_timestringThe ISO8601 timestamp when the file was last modified
modified_byobjectInformation about who last modified the file
Instrucciones
Monitors your OneDrive for file updates in the specified path. Configure 'drive_path' to a folder path (e.g., '/','Documents', 'Documents/Reports'). On the first run, the trigger initializes state and returns no events.
OneDrive Folder Created TriggerONE_DRIVE_FOLDER_CREATED_TRIGGERTriggerTriggers when a new folder is created in OneDrive.
Uses Gmail-style state management for reliable duplicate prevention.
ONE_DRIVE_FOLDER_CREATED_TRIGGERTriggerTriggers when a new folder is created in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.
Configuración
drive_pathstringThe path in OneDrive to monitor for changes. Default is root.
include_deletedbooleanWhether to include deleted items in the changes
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
Payload del evento
event_typestringObligatorioType of change event (created, modified, deleted)
itemobjectObligatorioThe OneDrive item that changed
OneDrive Item Deleted TriggerONE_DRIVE_ITEM_DELETED_TRIGGERTriggerTriggers when a file or folder is deleted in OneDrive.
Uses Gmail-style state management for reliable duplicate prevention.
ONE_DRIVE_ITEM_DELETED_TRIGGERTriggerTriggers when a file or folder is deleted in OneDrive. Uses Gmail-style state management for reliable duplicate prevention.
Configuración
drive_pathstringThe path in OneDrive to monitor for changes. Default is root.
include_deletedbooleanWhether to include deleted items in the changes
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
Payload del evento
event_typestringObligatorioType of change event (created, modified, deleted)
itemobjectObligatorioThe OneDrive item that changed
Item Moved or RenamedONE_DRIVE_ITEM_MOVED_OR_RENAMED_TRIGGERTriggerTriggers when a file or folder is moved to a different path or renamed in OneDrive.
Includes both old and new path/name data in the payload.
ONE_DRIVE_ITEM_MOVED_OR_RENAMED_TRIGGERTriggerTriggers when a file or folder is moved to a different path or renamed in OneDrive. Includes both old and new path/name data in the payload.
Configuración
drive_pathstringThe path in OneDrive to monitor for moves/renames. Default is root.
include_filesbooleanWhether to include files in move/rename detection.
include_foldersbooleanWhether to include folders in move/rename detection.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
Payload del evento
event_typestringObligatorioEvent type: renamed, moved, or moved_and_renamed
item_idstringObligatorioThe unique identifier of the item
item_typestringObligatorioType of the item: file or folder
new_namestringCurrent name of the item
new_pathstringCurrent parentReference.path of the item
old_namestringPrevious name of the item
old_pathstringPrevious parentReference.path of the item
payloadobjectFull OneDrive payload
web_urlstringWeb URL of the item
Instrucciones
This trigger monitors OneDrive for items that are moved to a different folder path or renamed. - Configure drive_path to scope monitoring to a specific folder (default is root "/"). - Choose whether to include files and/or folders via include_files/include_folders. - The payload contains old and new name/path values for precise change handling.
OneDrive Item Updated TriggerONE_DRIVE_ITEM_UPDATED_TRIGGERTriggerTriggers when an existing file or folder is modified in OneDrive.
Uses Gmail-style state management and only detects actual modifications, not new creations.
ONE_DRIVE_ITEM_UPDATED_TRIGGERTriggerTriggers when an existing file or folder is modified in OneDrive. Uses Gmail-style state management and only detects actual modifications, not new creations.
Configuración
drive_pathstringThe path in OneDrive to monitor for changes. Default is root.
include_deletedbooleanWhether to include deleted items in the changes
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
Payload del evento
event_typestringObligatorioType of change event (created, modified, deleted)
itemobjectObligatorioThe OneDrive item that changed
New Version CreatedONE_DRIVE_NEW_VERSION_CREATED_TRIGGERTriggerTrigger that fires when a new version of a specified OneDrive file is created.
ONE_DRIVE_NEW_VERSION_CREATED_TRIGGERTriggerTrigger that fires when a new version of a specified OneDrive file is created.
Configuración
drive_idstringThe unique identifier of the drive. Optional; defaults to /me if not provided.
group_idstringThe unique identifier of the group. Mutually exclusive with other scope IDs.
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
item_idstringObligatorioThe unique identifier of the OneDrive file to monitor.
site_idstringThe unique identifier of the site. Mutually exclusive with other scope IDs.
user_idstringThe unique identifier of the user. Mutually exclusive with other scope IDs.
Payload del evento
item_idstringObligatorioThe ID of the OneDrive file.
modified_timestringObligatorioThe ISO 8601 timestamp of when this version was last modified.
version_numberstringObligatorioThe version number/ID as returned by Microsoft Graph (e.g., '2.0').
Instrucciones
Monitors a specific OneDrive file for new versions. Provide the file's item_id (and optionally drive/group/site/user scope). On the first run (last_synced_at == 0), no events are emitted; the state initializes.
Sharing Permission Added or RemovedONE_DRIVE_SHARING_PERMISSION_CHANGED_TRIGGERTriggerSharing Permission Added or Removed
ONE_DRIVE_SHARING_PERMISSION_CHANGED_TRIGGERTriggerSharing Permission Added or Removed
Configuración
drive_idstringDrive ID if monitoring an item outside the signed-in user's default drive.
group_idstringGroup ID if the item resides in a group's drive.
include_role_updatesbooleanIf true, the trigger will also fire when roles are changed on an existing permission (e.g., from read to write).
intervalnumberPeriodic Interval to Check for Updates & Send a Trigger in Minutes
item_idstringThe unique identifier of the OneDrive item to monitor for permission changes.
item_pathstringAlternative to item_id. Path relative to drive root in the form ':/path/to/item:/'
site_idstringSharePoint Site ID if the item resides in a site's drive.
user_idstringUser ID if the item resides in a specific user's drive.
Payload del evento
affected_identitiesobject[]Users/groups/apps affected by this change
event_typestringObligatoriopermission_added | permission_removed | permission_updated
item_idstringObligatorioThe OneDrive item ID whose sharing changed
linkobjectSharing link details, if any
permission_idstringObligatorioThe permission ID involved in the change
previous_rolesstring[]The roles before the change (for updated)
rolesstring[]The roles after the change (for added/updated)
Instrucciones
Monitor a specific OneDrive item for sharing permission changes. Provide the item_id (or item_path with drive context). On first run, the trigger initializes state and emits no events. On subsequent polls, it detects permissions added or removed. Optionally, enable include_role_updates to also detect role changes.