How to check if particular folder exists in sharepoint

I need to get Boolean output if that folder is not present in SharePoint .I am using UiPath Team package for sharepoint activities. please help

Hi @tharani.natarajan

Check out this thread. This should help you.

Hope it helps!!
Regards

Thanks but when I tried that but it is not working for me .

in path i m placing the link like this …

https://xyz.sharepoint.com/:f:/r/sites/RPA/Shared%20Documents/Bot%20Testing%20Channel/Store%20Level%20Assets/Archived%20Input%20(BOT%20STARTED%20PROCESS)?csf=1&web=1&e=J9Z5mA

path exist gives me false always . kindly correct me

You can try this:

Make a Get File Folder in a try Catch.
If it exists assigned a boolean to true,
if it passes in the catch then assigned this same boolean to false.

1 Like

Hi @tharani.natarajan

You can do it by using office 365 scope & for each file in a folder & If condtion.

Hope this helps :slight_smile:

Hi @tharani.natarajan

Please check on this

Regards,

But i need to check for folder that is in sharepoint .

@tharani.natarajan

Two ways…

  1. Use get file inside try catch it fails and gors to catch if not found else downloads
  2. Use get children names and then check if the required file or folder is presnet

Cheers

You can change the folder path as per the location. use the get files activities. In the output property, see if the folder is missing. You can use if action and output count =0 and one boolean variable is true, the other is false.
I hope this is helpful for you.

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