Hi All,
How to check the particular folder exists or not in the sharepoint, I am using the microsoft 365 scope activity. Can someone guide me please.
Hi All,
How to check the particular folder exists or not in the sharepoint, I am using the microsoft 365 scope activity. Can someone guide me please.
Hi @TJamuna
Microsoft 365 Scope: Provide your Client ID, Tenant ID, and Client Secret for authentication.
Find Files and Folders: Set the Site URL to https://<tenant>.sharepoint.com/sites/<site_name>, specify the Folder Path (e.g., Shared Documents), and optionally use the Query to search for a folder by name (e.g., name eq 'TargetFolder'). The result will be stored in the FilesAndFolders output.
If Activity: Check if the FilesAndFolders.Count is greater than 0; if true, display a message saying âFolder existsâ, otherwise show âFolder does not existâ.
Or try below link:
Hi @TJamuna,
You can do below:
Also, linking activity documentation:
hope this helps.
Regards
Sonali
@prashant1603765 @sonaliaggarwal47
Can you try with path exists activity
if it wont work then follow,
And try to use Get file or folder activity, and validate the output.
Happy automation!!
The Find File and folder activity is deprecated. We will have to use alternative that is
For Each file/Folder activity
@ashokkarale thanks for the reply
Relative path or folder picker
Can you please assist me.
here you need to use for each file or folder to get the folders info as @ashokkarale suggested.
Give a try on both, from which option you are able to get the folder info.
if didnât work both try other options also
Hi @TJamuna ,
please check once,
Follow these steps:
Assuming your SharePoint folder structure is like this
You are checking Child folder exists.
&viewidGet Files or Folders activity and put the URL from step 2 into File or folder URL property. Declare a variable to store output from the property. I have declared it as result.Hope this is clear.
@ashokkarale
Let me try. Thanks for the reply
@ashokkarale
Its working, Thanks for the support.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.