• Shaun Ripley
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 4
    Replies
New to Apex development and wondering if it is even possible to generate apex POJOs from xsd files? I see there is support for WSDL > Apex, JSON deserialize method (json > Object) and XMLStreamReader but no explicit way to generate of objects from xsd files. Has nayone tried to do this? How di you solve? 
I tried to create folder via apex code
      
      code:

        Folder fold=new Folder();
        fold.AccessType='Shared';
        fold.DeveloperName=UserInfo.getUserName();
        fold.AccessType='Shared';
        fold.Name='testfolder';
        fold.Type='Report';
        insert fold;

i got the error dml not allowed on folder.



Hi,

 

We have https://json2apex.herokuapp.com  to deserialize json to apex class.

 

Similarly I need to deserialise XML to apex class.

 

Are there any tools like above mentioned url to deserialise xml to apex.

 

Thanks

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!