• sagar123
  • NEWBIE
  • 0 Points
  • Member since 2010

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

when i tried following

 

  Folder f= new Folder();
    f.Name=foldName;
    f.AccessType='Public';
    f.Type='Document';
    insert f;

 

it gives me error

 

ErrorError: Compile Error: DML not allowed on Folder

when i tried following

 

  Folder f= new Folder();
    f.Name=foldName;
    f.AccessType='Public';
    f.Type='Document';
    insert f;

 

it gives me error

 

ErrorError: Compile Error: DML not allowed on Folder

Hi all,

I am new to sales force.I am just a leraner in this area.My requirement is i need to write the code to upload the pdf documents to the server and retrive them using web services.I tried to follow the basic workbook example and i was ended with Email templates.

Now I tried to create a folder in force.com and want to put all my pdfs there.I tried to crate the folder with name "myFolder" it says invalid,then i queried for the folders in the work space I got my Email temlates folder nothing else.I read somewhere saying we can create a private folders in force.com, can anyone please tell me how to crate a folder with the specified name and to put some documents into that.

 

Thanks
Chandra.