I'm creating document structure whenever a document is added. Within business rules is stated that document will be added only in the 5th folder in the sturcture. So if the list name is ProjectDocuments the stucture would be
The issue is that in the custom workflow that i created only 3 folders can be added. When 4th is added SP throws an exception. Is there a setting somwhare that changes this or this is a bug?
Just to note using SP UI user can add many folders one within another.
body of the method :
private void addFolderToSubfoldersCollection(ref string folderName,SPFolderCollection subFoldersCollection )
bool folderExists = false;
folderName = makeNameFormated(folderName);
foreach (SPFolder folder in subFoldersCollection)
if (folder.Name == folderName)
View Complete Post