You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/content/docs/en/integrations/microsoft_word.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -248,7 +248,7 @@ List or search Microsoft Word (.docx) documents in OneDrive or SharePoint. Non-W
248
248
|`query`| string | No | Search text matched against file name, metadata, and content. If omitted, the documents directly inside the folder are listed. |
249
249
|`folderId`| string | No | The ID of the folder to list or search within. If omitted, the drive root is used. |
250
250
|`driveId`| string | No | The ID of the drive to list from. Required for SharePoint. If omitted, uses the personal OneDrive. |
251
-
|`pageSize`| number | No | Maximum number of items to request from Microsoft Graph \(1-$\{MAX_PAGE_SIZE\}, default $\{DEFAULT_PAGE_SIZE\}\)|
251
+
|`pageSize`| number | No | Maximum number of items to request from Microsoft Graph \(1-200, default 50\)|
252
252
|`pageToken`| string | No | Continuation URL from a previous response's nextPageToken, used to fetch the next page |
returnNextResponse.json({error: 'Failed to obtain valid access token'},{status: 401})
71
72
}
72
73
73
-
leturl=`https://graph.microsoft.com/v1.0/me/drive/root/children?$filter=folder ne null&$select=id,name,folder,webUrl,createdDateTime,lastModifiedDateTime&$top=${ONEDRIVE_FOLDERS_PAGE_SIZE}`
74
+
// Scope to the requested drive so a SharePoint-targeted block does not list
75
+
// the signed-in user's personal OneDrive folders instead.
leturl=`https://graph.microsoft.com/v1.0/${drivePath}/root/children?$filter=folder ne null&$select=id,name,folder,webUrl,createdDateTime,lastModifiedDateTime&$top=${ONEDRIVE_FOLDERS_PAGE_SIZE}`
0 commit comments