Find if folder exist in SharePoint and create a new folder inside that existing folder

Have a folder structure in SharePoint as follows vendor>date. I want to check if date folder exists inside the vendor folder of doesn’t exist I need to create date folder how to achieve this scenario.

@sanjay_gowda

Use fiind files/folders activity and in query give date folder as you need…and in sub folder give the folders till vendor

If returned value is not nothing then dont create else create

Cheers

Hello @Anil_G

I checked for this activity but I am not able to see this activity in my activity pannel. The package I have used is UiPath.microsoft365.activities and version is latest version 2.6 may I know if any changes I need to do or do I need to downgrade the version.

@sanjay_gowda,

Due to multiple limitations, Find Files And Folders activity has been deprecated. Please use For Each File/Folder (classic) or For Each File or Folder(Integration Service connection) instead.

Refer this documentation:

1 Like

@sanjay_gowda

Its a classic activity…you can reduce the package version

Or for latest use for each

Cheers

Hello @ashokkarale ,

I tried using for each and I was able to locate the vendor folder which is present inside my root folder
Eg : my root folder is sanjay and inside this I have vendor folder and I was able to look for this. But next step is like if vendor folder is found how can I go inside that folder and look for current date folder.

My folder structure is like this : Sanjay >vendor>date
Sanjay is my root or parent folder
Vendor is a subfolder of Sanjay
Date is a subfolder of vendor

Please let me know if any further details required.

Thanks,
Happy automation :grinning:

@sanjay_gowda,

Try using another For Each File/Folder inside the current one to iterate subfolders.

How can I give the dynamic input for both for each because the vendor folders will be more than 10 with different names