Get File Or Folder By ID from Sharepoint - The resource could not be found

Hello,

I’ve been trying to use integration service with event triggers to get a file that was created in sharepoint.

I’m getting the file ID from the UiPathEventObjectId argument, and then passing the Id to get file or folder, which returns the resource could not be found.

After further testing, I’ve tried getting the file using the exact path, then passing the Id directly, I’ve added the site url and the document library url, but I keep getting the same result.

Has anyone used the activity this way and found a solution?

Image of my test:

@Gal_Rothschild

  1. site url should be the url and it should be till the sitename only should not include document library or any other details
  2. document library should be the name generally documents or shared documents or any other name you have

an example Move files from desktop to Sharepoint subfolder - issue - #2 by Anil_G

cheers

1 Like

Thanks for the response Anil!

I’ve tried it the same as you’ve written in the other reply, and it was the same thing I’ve tried before, so it didn’t work.

I’ve been playing with it since I’ve written the topic.
and found that my issue was that I was using a subsite, so it needed the subsite url.
Building upon your example: xxxsharepoint.com/sites/sitename/subsitename/drivename/folder1/folder2/requiredfolder
Site URL: xxxsharepoint.com/sites/sitename/subsitename
Document Library: drivename

Thank you very much for the support!

1 Like

@Gal_Rothschild

yes should be till the end site

glad it helped

Happy Automation

cheers

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