How to get the file from sharepoint and drop the file on sharepoint?

Thanks but giving me below Error.

Find Files And Folders: Code: itemNotFound
Message: The provided path does not exist, or does not represent a site
Inner error:
AdditionalData:
date: 2023-04-27T19:35:46
request-id: fa4c6228-1c24-44fd-afb3-e56084fba458
client-request-id: fa4c6228-1c24-44fd-afb3-e56084fba458
ClientRequestId: fa4c6228-1c24-44fd-afb3-e56084fba458

@PALKUMARI_PATEL

Can you please show how you gave the details…

Did you replace all values properly?

Cheers

1 Like

Yes, I did.

image

https://xyz.sharepoint.com/:f:/r/sites/Team_xyz/Documents/www - 000/mmm/DSS/2023/DSW Robotic Dumps/ggg/ABC 2023-02-01.xlsx”

Drive name = documents

@PALKUMARI_PATEL

Site url - https://xyz.sharepoint.com/sites/Team_xyz/

And for folder basically you need to give from root document you see on sharepoint top left…after docuemnts

it looks like this Documents > folderA > Folder B > Folder C

File1.xlsx

cheers

1 Like

Yes, those are the folders . I give folder names only. Still getting error.

@PALKUMARI_PATEL

Please check the slashes at the end and start

SomeFolder/Folder2/Folder3 No slashes at both ends

And also is your authentication proper?

did you try any activity successfully?

cheers

2 Likes

Checked slashes and looks ok. I have tried for each file and folders and throught hat able to get folder names. but not sure how can i get file names.

Folder name : DriveItem.Name

I able to get file names . Now getting trouble to downloads specific file and apply filers , move file to sharepoint from local folder or write data into sharepoint file using Write range workbook.

Getting below Error while trying to upload files :
Upload File: Code: BadRequest
Message: /me request is only valid with delegated authentication flow.
Inner error:
AdditionalData:
date: 2023-05-02T20:21:13
request-id: feffa4ba-6ab9-4ddb-bdac-6fbfc98a67ab
client-request-id: feffa4ba-6ab9-4ddb-bdac-6fbfc98a67ab
ClientRequestId: feffa4ba-6ab9-4ddb-bdac-6fbfc98a67ab
can someone help me here ?

Thanks @Anil_G For helping on the issue. Working absolutely fine.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.