How to create folder in Sharepoint using Office365 scope

Hello team! I’m facing an issue using the Office365 activities scope.
I want to loop throught the folders in a subfolder and look for the current year, if don’t exist create. And do that again for the current month.
I’m using a find files and folders to search for the results, if the result still False after the for each, create the folder. What should I use as the destination folder in the activity? Thank you all.




@Scepanik_Mateus_uie11118

You should first use find files or folders …if result has .Count>0 then found else not found …if not found…we have to use find files for the parent folder or use the same folder used in find files or folders in the previous one and create the folder

Cheers

Hi! So for the Subfolder value in FindFilesAndFolder activity I will use the full path + Now.ToString(“yyyy”), and if returns void, create folder.
But what should I put as parameter in the Destination folder?

@Scepanik_Mateus_uie11118

Response of find files with wuery as one less than yyyy folder and sub folder as leaving the query folder…that output should be given in the create folder

So eg: f1/f2/f23/yyyy is not found then use find files with query as f3 and sub folder as f1/f2 and give the output in create folder…

Cheers

Great! It worked, ty.

1 Like

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