• Rashmi Seshadri 13
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

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?

 

Thanks!