You need to sign in to do that
Don't have an account?
jchanowitz Code:
My objective is to return the top level folder, which would have within it the entire tree structure of what I'm trying to render in my client. When I try to compile, I get:
"Unexpected Error" when trying to compile Apex Class
I have hierarchical type data in SalesForce that I'm trying to bring over to a client via an Apex web service. As an example I have a directory tree structure consisting of "folders" and "files", where folders can contain files and other folders. The classes I'm trying to build are
global class Folder { webservice ID id; webservice String title; webservice File[] files; webservice Folder[] subFolders; } global class File { webservice ID id; webservice String title; }
My objective is to return the top level folder, which would have within it the entire tree structure of what I'm trying to render in my client. When I try to compile, I get:
Unable to perform compile/save/delete: SoapFaultException: UNKNOWN_EXCEPTION: An unexpected error occured. Please include this ErrorId if you contact support: 76227213-49
It seems the subFolders member is causing the error. If I remove either the array or the webservice keyword, things compile just fine. Is there any way to do this?
Thanks