Access token from getSharePointTokenUserAuth
Destination drive ID (e.g. , 'ab!5xqiQKeGnEGeI02fc4Mu5HrH_BkaM1FNnCohEqq7eEnQYz1prATORbPSv-3951Ny')
File ID (e.g. , '01NKDM7HMOJTVYMDOSXFDK2QJDXCDI3WUK')
New copy file name (e.g. , '/new-name.txt')
Destination parent folder ID (e.g. , '01NKDM7HMOJTVYMDOSXFDK2QJDXCDI3WUK')
Return true if copied successfully
const copyResponse = await copyFileEval(ctx, token, {
driveId: 'ab!5xqiQKeGnEGeI02fc4Mu5HrH_BkaM1FNnCohEqq7eEnQYz1prATORbPSv-3951Ny',
fileId: 'ahsiaoproductivemobile.sharepoint.com,40a21ae7-86a7-419c-9e23-4d9f73832ee4,19fcc77a331a-4d51-9c2a-2112aabb7849',
destinationPath: '/path/to/destination.txt',
});
Copy a file to a SharePoint drive using Microsoft Graph API.