Folder fold=new Folder();
i got the error dml not allowed on folder.
I'm trying to figure out if a folder can be created using apex. The following code does not work:
Folder newFolder = new Folder(Name=folderName,Type='Document',AccessType='Public'); insert newFolder;
Apparently DML is not allowed on folders. Any thoughts on this?