Copy files
4 TopicsProblem copying file in SharePoint with Ms Graph v5.x
Hello. I need to copy a file in SharePoint, with Ms Graph v5.61 to a new folder (in the same library). The problem is that it copies but the process does not wait for it to complete and returns null, then I check and the file exists. I pass the code that I am using. public async Task<string?> CopyAsync(string listDriveId, string sourceDriveId, string destinationDriveId, string newName) { try { GraphSDK.Drives.Item.Items.Item.Copy.CopyPostRequestBody destinationInfo = new GraphSDK.Drives.Item.Items.Item.Copy.CopyPostRequestBody() { ParentReference = new ItemReference() { DriveId = listDriveId, Id = destinationDriveId }, Name = newName }; DriveItem? copy = await _graphClient.Drives[listDriveId].Items[sourceDriveId].Copy.PostAsync(destinationInfo); // Problem: "copy" is always null, but it is copied. When I check if the copied file exists, this file exists. if (copy != null) { return copy.Id; } } catch { } return null; } Can you help me? Thank you very much.14Views0likes0CommentsHow to recover OnDrive from local SSD's FS (Offline - system crashed-no SO)- Help me please
Good afternoon, please, I need some help.... I have a computer on which the OS crashed, I only have access to the filesystem, but I need to access/backup data from a OneDrive folder, which obviously was not synchronized. I have been able to access the FS and I see the structure and sizes of the files, but when I copy them, the size of each file is 0 byte. I also tried to modify the directory and files attributes with "attrib +U -P /S", but I get the error that it does not find the dynamic link. Is there any way or procedure to retrieve these files? Thank you in advance. Bests regards, Fernando828Views0likes4CommentsCopy or move files from OneDrive business to onedrive
Dear all, I need to copy (actually move) a big amount of data from my OneDrive Business to OneDrive personal. Aproximately 700GB. The only solution seems to be moving/copying the files on my PC from folder to folder. But first of all I do not have that much space on my HDD and this will take days. While these files are on the cloud only and I would like to shift them to my another acount. There is one template in PowerAutomate which copies files from OneDrive to OneDrive business but I need the opposite. That template runs only when a new file is created or so. I searched a lot and understand that Microsoft does not allow that?!?!!? Is that true? Why? I mean both are my accounts, I have acces to them, so why the hell should that be not possible? I would appreciate if anybody knows a solution for that. Thanks1KViews0likes0CommentsFrom form, to Excel, to 2nd Excel
Hello, I'm having issues understand the Power Automate process. I have a Teams Group, and I created an Excel file (file A) and then created a Form to feed into that file. I need the data from file A to populate another excel file (File B) whenever a form is submitted to file A. But there is an exception. I need just a few of the cells in each row. Not all. Form ---> Excel A ----> copy to Excel B Any help? I think if I can see this in action I can follow for other projects. Thanks again for your help and advice.